19
edits
Changes
→rsync: include -H and -X to preserve hard links and extended attrs. Use --one-file-system option to simplify exclude list and improve rsync security.
=== rsync ===
{{Note|You should add the "<code>-H" </code> option, so hardlinks will be preserved during sync. and also include the <code>-X</code> option to preserve file extended attributes}} If your source system have multiple partitions (for example <code>/var</code> or <code>/home</code>) repeat the command above for each partition in your system; for example:<source lang="bash">rsync -avz -H -X --one-file-system --numeric-ids -[[Special:Contributions/194.95.66.21|194e ssh root@a.95b.66c.21]] 12d:05, 8 September 2011 (UTC)}}/var/ /vz/private/123/var/</source>
'''Advantage:''' Your system doesn't really go down.