syncing folders between sda1 (Linux partition) sdb1 (backup drive)

rmg at rmg at
Sat Mar 10 00:14:24 UTC 2007

On Fri, 9 Mar 2007 19:47:04 +0300
"OOzy Pal" <oozypal at> wrote:

> How can I sync folders between sda1 (Linux partition) sdb1 (backup
> drive)?
> I looked at rsync but could understand.

Read the FM again! rsync is the right tool.

FWIW I back up my partitions to a HD with (eg for /home)

rsync -av --exclude from=<exclude_file_name> /home /usbbk/home

you may want a --delete in there too otherwise the backup keeps all the
outdated files.

the exclude file has things like (without the comments)

*~			#emacs backup files
#*			#restore files
/rmg/.pan/data/cache/*	#usenet files

Put the command line above in a file in /home, chmod +x it, cd /home and
type ./<filename>

Dick Georgeson

More information about the ubuntu-users mailing list