X-Git-Url: https://git.llucax.com/software/bacap.git/blobdiff_plain/39a46f88097147eafc80c9c9cc8e6a182c3e6a7f..379f430717d1fc9c0d7c117243fb3f385c89982e:/README?ds=sidebyside diff --git a/README b/README index c15200c..30875a2 100644 --- a/README +++ b/README @@ -97,7 +97,7 @@ configuration file):: mkdir -p $CONFIG_PATH -The create a directory for each host you want to backup there, the directory +Then create a directory for each host you want to backup there, the directory name should be the name of the host (as you would use to connect to it using ssh_). For now let's say we will only backup ``localhost``:: @@ -110,7 +110,7 @@ line for each path to backup in that host. Let's say we want to backup only ``/etc`` and ``/home``:: echo /etc > $CONFIG_PATH/$LOCALHOST/paths - echo /home > $CONFIG_PATH/$LOCALHOST/paths + echo /home >> $CONFIG_PATH/$LOCALHOST/paths But sometimes there are things there that you don't want to backup, in that case you can create a file named ``excludes`` too, and write which paths you @@ -120,6 +120,10 @@ backup rata's home:: echo /home/rata/ > $CONFIG_PATH/$LOCALHOST/excludes +Also, if you don't want to exclude files matching some pattern, you can create +a file named ``includes`` with the patterns you want to include (you can use +anything supported by the ``--include-from`` rsync_ option) + That's pretty much it. If you want to add other hosts, just create the host directory and the needed host configuration files. @@ -127,7 +131,7 @@ You may want to automate it using *cron*. I will not include a *cron* tutorial here, but if you are completely lost, you can add this line to ``/etc/crontab`` to make a daily backup at 6:30:: - 25 6 * * * root /path/to/bacap + 30 6 * * * root /path/to/bacap If you are a Debian_ user, you can also simply install the script in ``/etc/cron.daily`` (or make a symlink or something similar) and you are set. @@ -152,6 +156,10 @@ for any host, it skips that host. A symbolic link is created at the end of the backup, with the name ``$BACKUP_PATH/$host/current``, and pointing to the newly created directory. +Also, to see what have actually changed between two backups you can run rsync +with your usual flags plus "-nv --delete". For example if you just use "-a", to +see the differences between lolaus/2010-07-11 and lolaus/2010-07-12 you can run:: + rsync -nav --delete lolaus/2010-07-11/ lolaus/2010-07-12/ Similar alternatives