Difference between revisions of "Talk:Full system backup with rsync"

From ArchWiki
Jump to: navigation, search
(Doesn't Work: rm closed discussion)
(What happened to this page?: re)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Comments ==
+
== <s>What about hard links and delete options</s> ==
 
+
Thanks! Neat method for a sync-type backup! The only question I have is what happens if you {{Ic|dd}} the boot sector (first 512 bytes) instead of running GRUB? --[[User:VitaminJ|VitaminJ]] 22:18, 11 November 2009 (EST)
+
 
+
----
+
 
+
I don't know if it works with <code>dd</code>, since the partitioning scheme can be different on the two harddrives.
+
 
+
* I vote for merging this with [[rsync]].
+
* I second the vote.
+
 
+
[[User:Wooptoo|Wooptoo]] 07:14, 2 December 2009 (EST)
+
--[[User:Keiichi|Keiichi]] 20:59, 2 December 2009 (EST)
+
----
+
Yep, I think you are right, I think that GRUB hardcodes the path to menu.lst in the GRUB boot program, so if you change around disks it won't work.
+
 
+
As an alternative, an article on using tar instead might be useful because rsync may improperly preserves permissions across filesystems. For example if you backup from ext3 to XFS, and try to restore back to ext3.
+
 
+
:The only issue would be doing it with FAT or NTFS were permissions just aren't possible. Coincidentially, I've done this exact setup using XFS and ext4 wihout anything breaking down. I only had problems between reiserfs and *, but that was due to SELinux context. [[User:Dres|Dres]] 21:22, 18 January 2010 (EST)
+
 
+
----
+
I think its a good idea to mention dirvish here. --[[User:Moere|Moere]] 03:37, 1 March 2010 (EST)
+
 
+
----
+
on the same topic, you can also look at a free script that i wrote to backup the whole disk with rsync here: http://blog.pointsoftware.ch/index.php/howto-local-and-remote-snapshot-backup-using-rsync-with-hard-links/
+
 
+
It uses file deduplication thanks to hard-links, uses also MD5 integrity signature, 'chattr' protection, filter rules, disk quota, retention policy with exponential distribution (backups rotation while saving more recent backups than older).
+
It was already used in Disaster Recovery Plans for banking companies, in order to replicate datacenters, using only little network bandwidth  and transport encryption tunnel.
+
 
+
Can be used locally on each servers or via network on a central remote backup server.
+
windows server could also be backuped by using a linux box that mount smb shares from them.
+
 
+
i hope it will be useful to you guys
+
--[[User:Scheuref|Scheuref]] ([[User talk:Scheuref|talk]]) 14:03, 19 September 2012 (UTC)
+
 
+
-----
+
 
+
Indeed, great article. One small comment, I had to recreate initramfs due to the filesystem being different on the target disk. The previous initramfs didn't have the correct fsck tool for the new disk. Running mkinitcpio -p linux is really simple, but it would be nice to prepare the reader of this case. [[User:Haritak|Haritak]] ([[User talk:Haritak|talk]]) 04:40, 19 April 2013 (UTC)
+
 
+
-----
+
 
+
== What about hard links and delete options ==
+
  
 
Why the -H option is not added?
 
Why the -H option is not added?
Line 47: Line 6:
 
Thank you,
 
Thank you,
 
Xwang
 
Xwang
 +
: [https://wiki.archlinux.org/index.php?title=Full_System_Backup_with_rsync&diff=prev&oldid=268620 -'H'] and [https://wiki.archlinux.org/index.php?title=Full_System_Backup_with_rsync&diff=275164&oldid=273575 '-delete'] info added. Closing. -- [[User:Karol|Karol]] ([[User talk:Karol|talk]]) 22:32, 14 January 2014 (UTC)
  
 
== What happened to this page? ==
 
== What happened to this page? ==
Line 52: Line 12:
 
Ok, I started this page, so I'm biased. It used to be clearly written, with an easy to understand example on how to use rsync and its exclude format. Now it's a one liner with the excludes mashed together and most of the page is dedicated to setting up your fstab. Why?
 
Ok, I started this page, so I'm biased. It used to be clearly written, with an easy to understand example on how to use rsync and its exclude format. Now it's a one liner with the excludes mashed together and most of the page is dedicated to setting up your fstab. Why?
 
[[User:Wooptoo|Wooptoo]] ([[User talk:Wooptoo|talk]]) 19:47, 6 March 2013 (UTC)
 
[[User:Wooptoo|Wooptoo]] ([[User talk:Wooptoo|talk]]) 19:47, 6 March 2013 (UTC)
 +
: I thnk this info should go to the main [[rsync]] article. -- [[User:Karol|Karol]] ([[User talk:Karol|talk]]) 22:39, 14 January 2014 (UTC)

Revision as of 22:39, 14 January 2014

What about hard links and delete options

Why the -H option is not added? I've done a quick search in my arch system and there are a lot of hard link in the /usr/share folders. Moreover should the -delet option be added to in order to be sure that the cloned system contains all and only the files which are present in the original one? Thank you, Xwang

-'H' and '-delete' info added. Closing. -- Karol (talk) 22:32, 14 January 2014 (UTC)

What happened to this page?

Ok, I started this page, so I'm biased. It used to be clearly written, with an easy to understand example on how to use rsync and its exclude format. Now it's a one liner with the excludes mashed together and most of the page is dedicated to setting up your fstab. Why? Wooptoo (talk) 19:47, 6 March 2013 (UTC)

I thnk this info should go to the main rsync article. -- Karol (talk) 22:39, 14 January 2014 (UTC)