I have run incremental backup using rsync successfully after reading from one site but I could not copy many system files because "permission denied" etc. So I just exclude the folders through the excluded files. Does this mean that rsync has that limitation? I had run as superuser. I have read the manual, but still could not find the way to copy all system files using rsync. I have used dd command successfully to do that.
Thanks for the fast reply. My code is something like this: and the failure is mostly caused by chgrp and chown, like this: How do you work around the problem?
/dev/sda1 ... ext2 /dev/sda2 ... linux-swap My code rsync the "/" folder. Perhaps that includes the sda2 ?
No, sda2 is your swap partition - you don't have to rsync that. It is used by your computer if there's not enough RAM.
The source is ext2, the destination is also ext2. Perhaps this is related to group and owner of destination folder? How should I get around this?
dirvish Hi, Why don't you use a backup system like dirvish? It has served me well for quite some time now. Otherwise (or also with dirvish) you will need to exclude device and virtual files like those, maybe in a exclude file (e.g. rsync_exclude.txt): Code: /path/to/file/from/directory/rsync/is/run path/to/file/which/is/in/any/sub/directory path/to/directory/ /path/to/directory/ path/to/directory/** #to exclude every file under directory /other/pattern/???directorybeginningwithany3characters/and/fileendingwithanything* + path/to/file/to/keep/excluded/before/or/after # ... # unfortunately no regular expressions... and then run with Code: rsync --exclude-from=rsync_exclude.txt ... You can look up the dirvish docs, but i found rsync quite challenging to get it to do exactly what i want...
My method is Mike Rubel's that is also mentioned in Dirvish site. It works much the same. As such I believe it will give the same result.
Sorry, everyone, I am a newbie. I have got the answer: I did not set the owner of the destination as root.