X-Git-Url: https://git.llucax.com/software/bacap.git/blobdiff_plain/89ef59a9de51362ee6fa45fdda42a195e2aef4a0..refs/heads/main:/README diff --git a/README b/README index d3fad4f..7b8f0dd 100644 --- a/README +++ b/README @@ -35,8 +35,8 @@ remember: **It's very simple** =) -Instalation -=========== +Installation +============ Doing something very complex in ~100 SLOC_ is not easy, unless you're standing in the shoulders of giants. I'm standing in the shoulders of rsync_ mainly, so @@ -155,7 +155,7 @@ Here are a few tips on how to configure Bacap_ for several common scenarios. Automating backups using cron ----------------------------- -You probably want to automate you backup using *cron*. I will not include +You probably want to automate your backup 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:: @@ -170,18 +170,22 @@ If you are a Debian_ user, you can also simply install the script in Providing a ssh_ key -------------------- -When doing a backup of a remote host, you probably want ssh_ to be able to login -without providing a password. To do so, you can generate a ssh_ key, copy the -public key to the target's ``/root/.ssh/authorized_keys`` (or the user that runs -the backup) and set the Bacap_ configuration variable ``RSYNC_RSH`` to something -like:: +When doing a backup of a remote host, you probably want ssh_ to be able to +login without providing a password. To do so, you can generate a ssh_ key using +``ssh-keygen``, copy the public key to the target's +``/root/.ssh/authorized_keys`` using ``ssh-copy-id root@host`` (or the user +that runs the backup) and set the Bacap_ configuration variable ``RSYNC_RSH`` +to something like:: - RSYNC_RSH="-i /path/to/priv-key -o NumberOfPasswordPrompts=0" + RSYNC_RSH="ssh -i /path/to/priv-key -o NumberOfPasswordPrompts=0" The ``-o NumberOfPasswordPrompts=0`` is not necessary, but you would appreciate it if something is wrong with your key, since if you don't use it, rsync_ will hang asking for a password. +Also, you may consider using ``StrictHostKeyChecking=no`` ssh option if you +backup hosts with dynamic IP address. + Backup local networks nodes (or nodes with a fast connection) ------------------------------------------------------------- @@ -191,10 +195,10 @@ compression:: RSYNC_RSH="ssh -o Compression=no" -And if your network is trusted, you probably don't need very string encryption +And if your network is trusted, you probably don't need very strong encryption either:: - RSYNC_RSH="ssh -c arcfour" + RSYNC_RSH="ssh -o Compression=no -c arcfour" Listing differences between 2 snapshots