[PLUG] rsync options for backup

Russell Senior russell at personaltelco.net
Thu Jun 21 16:03:24 UTC 2018


You might want to add a -c every so many backups. It takes longer, but it
checks to make sure src and dst are actually the same instead of just
checking metadata for sameness.

On Thu, Jun 21, 2018, 09:01 Russell Senior <russell at personaltelco.net>
wrote:

> The one possible downside of hardlinks I have run into in the past decade
> is if one or the other side is memory constrained. It requires tracking
> inode numbers to make links to files that have been seen already. If it
> causes trouble, get more memory. Hardlinks are worth it! :-)
>
> On Thu, Jun 21, 2018, 08:56 Galen Seitz <galens at seitzassoc.com> wrote:
>
>> Hi,
>>
>> A question for those of you using rsync for backup, particularly those
>> using dirvish or rsnapshot.  Are you using any of the following rsync
>> options to your rsync command?  I recently discovered that none of these
>> are present in my rsnapshot configuration.  I'm certain I want to add
>> --xattrs in order to preserve the selinux security context.  Adding
>> --acls seems harmless, even though I dont' think I'm using them.  I'm
>> tempted to add --sparse and --hard-links, but I'm concerned there might
>> be some downsides of which I'm unaware.  Thoughts?
>>
>>          -A, --acls                  preserve ACLs (implies -p)
>>          -X, --xattrs                preserve extended attributes
>>          -S, --sparse                handle sparse files efficiently
>>          -H, --hard-links            preserve hard links
>>
>> thanks,
>> galen
>> --
>> Galen Seitz
>> galens at seitzassoc.com
>> _______________________________________________
>> PLUG mailing list
>> PLUG at pdxlinux.org
>> http://lists.pdxlinux.org/mailman/listinfo/plug
>>
>



More information about the PLUG mailing list