[gentoo-user] Re: rsync for backup, can anybody help

2007-12-27 Thread reader
Paul Stear [EMAIL PROTECTED] writes:

[...]


 Also I am getting a lot of errors and the backup is  finishing early and 
 not producing the stats. i.e.

 rsync: 
 symlink 
 /mnt/external/OneFileSystemBackup/usr/i686-pc-linux-gnu/lib/libopcodes.so 
 - /usr/lib32/binutils/i686-pc-linux-gnu/2.18/libopcodes.so 
 failed: Operation not permitted (1)
 rsync: chown /mnt/external/OneFileSystemBackup/usr/include failed: 

[...]

This looks like a permissions problem.  Is that symlink pointing at an
area where you do not have permissions?


 This is my command line:-
 $RSYNC  \
 -vaHKiq --delete-during --stats --progress --modify-window=2 
 --one-file-system  --include=/**/ / 
 /mnt/external/OneFileSystemBackup ;


The command is a bit out of my league with all those flags.  I've
never used several uf them.  Maybe someone will know.

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: rsync for backup, can anybody help

2007-12-27 Thread Paul Stear

 Neil has handled this... I wanted to include the rsync syntax to
 collect only directories... full or empty:

 So to collect all the directories regardless of your excludes
 put this before any excludes:
 --include=/**/

 The trailing slash confines it to direcotories only.
Thanks for the tip,
I have been trying to get this to work properly for most of the day, but I 
still have problems.
On my file system I have a directory lib which is a link to lib64 
(Folder).  I have tried various options to the rsync command but still 
haven't managed to retain this link on the backup disc.
Am I right in thinking that I would need to do a separate backup for /boot

Also I am getting a lot of errors and the backup is  finishing early and 
not producing the stats. i.e.

rsync: 
symlink 
/mnt/external/OneFileSystemBackup/usr/i686-pc-linux-gnu/lib/libopcodes.so - 
/usr/lib32/binutils/i686-pc-linux-gnu/2.18/libopcodes.so 
failed: Operation not permitted (1)
rsync: chown /mnt/external/OneFileSystemBackup/usr/include failed: 
Operation not permitted (1)
rsync: connection unexpectedly closed (11192228 bytes received so far) 
[generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(458) 
[generator=2.6.9]
rsync: connection unexpectedly closed (78658 bytes received so far) 
[sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(458) 
[sender=2.6.9]
Backup finished at 16:43, umounting /dev/sdd1

This is my command line:-
$RSYNC  \
-vaHKiq --delete-during --stats --progress --modify-window=2 --one-file-system  
--include=/**/ / 
/mnt/external/OneFileSystemBackup ;

More help required please, thanks for your efforts so far.

Just a thought, is this the best way to backup my system?
Thanks
Paul

-- 
This message has been sent using kmail with gentoo linux
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: rsync for backup, can anybody help

2007-12-26 Thread reader
Neil Bothwick [EMAIL PROTECTED] writes:

 On Wed, 26 Dec 2007 18:07:38 +, Paul Stear wrote:

  --one-file-system  
 
 Still not sure what the above will produce, I didn't find the man page 
 very readable. Take sys for example, if it is saying that the directory 
 would be created, would I still need to exclude everything under it?.

Neil has handled this... I wanted to include the rsync syntax to
collect only directories... full or empty:

So to collect all the directories regardless of your excludes
put this before any excludes:
--include=/**/

The trailing slash confines it to direcotories only.

-- 
[EMAIL PROTECTED] mailing list