config file format

Asked by Harald Heigl

I want to backup on my headless ubuntu (10.04 LTS) server. Because it's headless there's no gnome, no kde ... .
I know the config-files should go in ~/.config/backintime. But I can't find any information about the config-file format, I only find an older "wish" in the bug report for this feature (https://bugs.launchpad.net/backintime/+bug/647273). Could someone provide a sample config file or some internet ressource about this (googling didn't help so far ...). Or perhaps there is a single position in the sources where I can get that info uncomplicated ...

Thanks in advance,
Harald

Question information

Language:
English Edit question
Status:
Solved
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Solved by:
Harald Heigl
Solved:
Last query:
Last reply:
Revision history for this message
Harald Heigl (harald-heigl) said :
#1

ok in short, I've used another linux computer with gui, some of the configuration should be self-explaining. The configfile is named config and goes into /etc/backintime/ (global for all) and/or /home/<user>/.config/backintime/ (for every user). Just for everyone who is facing the same problem (I'm using version 1.0.6, just to make sure that we don't break anything). I would recommend to make the primary setup on a gui and then make some small changes to this file, if you have a headless-server like me ...

profile1.snapshots.dont_remove_named_snapshots=true
profile1.snapshots.exclude.1.value=.gvfs
profile1.snapshots.exclude.2.value=.cache*
profile1.snapshots.exclude.3.value=[Cc]ache*
profile1.snapshots.exclude.4.value=.thumbnails*
profile1.snapshots.exclude.5.value=[Tt]rash*
profile1.snapshots.exclude.6.value=*.backup*
profile1.snapshots.exclude.7.value=*~
profile1.snapshots.exclude.8.value=/home/xyz
profile1.snapshots.exclude.9.value=.dropbox*
profile1.snapshots.exclude.size=9
profile1.snapshots.include.1.type=0
profile1.snapshots.include.1.value=/tmp/src
profile1.snapshots.include.size=1
profile1.snapshots.log_level=3
profile1.snapshots.min_free_space.enabled=true
profile1.snapshots.min_free_space.unit=20
profile1.snapshots.min_free_space.value=1
profile1.snapshots.no_on_battery=false
profile1.snapshots.notify.enabled=true
profile1.snapshots.path=/tmp/dst
profile1.snapshots.path.auto=true
profile1.snapshots.path.host=host
profile1.snapshots.path.profile=1
profile1.snapshots.path.user=user
profile1.snapshots.preserve_acl=false
profile1.snapshots.preserve_xattr=false
profile1.snapshots.remove_old_snapshots.enabled=true
profile1.snapshots.remove_old_snapshots.unit=80
profile1.snapshots.remove_old_snapshots.value=10
profile1.snapshots.smart_remove=false
profile1.snapshots.smart_remove.keep_all=2
profile1.snapshots.smart_remove.keep_one_per_day=7
profile1.snapshots.smart_remove.keep_one_per_month=24
profile1.snapshots.smart_remove.keep_one_per_week=4
profile1.snapshots.use_checksum=false
profile1.snapshots.user_backup.ionice=false

If you have more than one profile, name the other profiles:
profile2.name=Test

In the end of the file you see the profiles (here 2 profiles 1 and 2) exist and the version:
profiles=1:2
profiles.version=1

A cronjob would look like this (from gui):
0 0 * * * nice -n 19 ionice -c2 -n7 /usr/bin/backintime --backup-job >/dev/null 2>&1

manually create the Destination path (this would be done by the gui otherwise):
<Destination>/backup<Profile>/backintime/<Computer>/<User>/1