Hi, Well, I need the procedure or how to do a full backup of archives to a directory. Then, do incremental backups in different directories. For example: source-dir to dest-dir a full backup. incremental of sources-dir and differential of backup-dir in `date +%m%h%y` Then, i should have a full backup in the dest-dir and incremental+diferential backup in every $DATE directory. Any ideas? I try this and it work on local files: rsync -pravuzgot /etc/* /root/full-backup rsync -av --link-dest=/root/full-backup/ /etc/ /root/incremental/ Then, i have in the "incremental" directory symlinks to every file, becouse they aren't modified. When i try this over ssh, it copies everything again in the incremental directory. rsync -pravuzgot host:/etc/* /root/full-backup rsync -av --link-dest=/root/full-backup/ host:/etc/ /root/incremental/ Tnxs in advance -- Lautaro Ezequiel Di Martino Administrador de Servidores GNU/Linux - Software Libre lautarodm@gmail.com
On Mon, 2005-10-31 at 16:59 -0300, Lautaro Di Martino wrote:> [...] When i try this over ssh, it copies everything again in the > incremental directory.I can't reproduce this problem. When I try the same command (but with different directories) over ssh, the files are hard linked correctly. Rsync decides not to transfer a source file's data if the destination file matches in size and modification time. Is there something strange about the filesystem on either end that could be preventing this match? For example, FAT can only store modification times with even numbers of seconds. -- Matt McCutchen, ``hashproduct'' hashproduct@verizon.net -- http://mysite.verizon.net/hashproduct/
On Mon, Oct 31, 2005 at 04:59:38PM -0300, Lautaro Di Martino wrote:> Then, i have in the "incremental" directory symlinks to every file, > becouse they aren't modified.That will nullify the --link-dest option -- if a file exists in the destination directory, the link-dest directory isn't used, and if the destination file isn't identical to the source file, it is updated (note: a symlink is not identical to a non-symlink). In almost all cases you want to copy into an empty directory when using --link-dest. If you want to end up with just the changed files in the incremental directory, rsync using --compare-dest into an empty directory. ..wayne..