RE: Is there a howto/tutorial on backups/rsync that covers the use of hard and soft links?

2013-01-23 Thread Voelker, Bernhard
Kevin Korb wrote: > On 01/22/13 18:12, Kevin Korb wrote: > > That is the old way that pre-dates --link-dest. Instead of cp -al > > daily.02 daily.01 you can do a mkdir daily.01 then an rsync ... > > --link-dest=../daily.02 daily.01 > > > > Rsync then doesn't need any --delete and you don't both

RE: Does rsync need a --ignore-unreadable-files option?

2013-01-11 Thread Voelker, Bernhard
Kevin Korb wrote (Friday, January 11, 2013 3:14 AM): > On 01/10/13 21:07, Allen Supynuk wrote: >> I work on software that archives gigabytes of files to multiple >> sites. >> >> Occasionally one or two files have no read permissions: >> >> % ls -l dir/foo --w---+ 1 abcserve myusers 11222 Jan

RE: rsync 3.0.9 hangs on large file

2013-01-03 Thread Voelker, Bernhard
Greg Bell wrote (Thursday, January 03, 2013 6:42 AM): > Hi Folks, > > Similar to an earlier thread, but slightly more ordinary. My old > rsync backup script, which worked fine under Ubuntu 12.04, hangs on > Ubuntu 12.10 (rsync 3.0.9) and a 250 MB file. Command line as follows: > > rsync -

RE: Rsync --update copy one file multiples times

2012-11-21 Thread Voelker, Bernhard
Francis wrote (Wednesday, November 21, 2012 3:59 PM): > On Wed, 21 Nov 2012 13:32:17 +0100 kamleshverma wrote: >> Yes, Drive showing full. actually I created LVM for backup.. > I suggest again to use the --inplace option of rsync. Additionally, if there have been some file deleted, then "rsync -

RE: Invoking rsync from a script with null parameters

2012-11-06 Thread Voelker, Bernhard
Kevin Korb wrote (Monday, November 05, 2012 5:48 PM): > Well, I am thinking that this is actually expected behavior that I had > just never seen before. Even cat and ls duplicate this behavior. Not quite: while the coreutils programs issue an error message for zero-lenght file names as it's requ

RE: Invoking rsync from a script with null parameters

2012-11-05 Thread Voelker, Bernhard
Joe wrote (Monday, November 05, 2012 4:23 AM): > To avoid having a number of slightly different rsync commands, I would > like to use shell variables as part of the rsync command. I.e.: > DRYRUN="-n" > rsync "${DRYRUN}" more parameters ... Just omit the quotes (and in this case you can also omit

RE: What happens after --max-delete is reached? Are updates processed?

2012-10-31 Thread Voelker, Bernhard
Sebastian Arcus wrote (Wednesday, October 31, 2012 12:18 PM): > Reading the manual page: "This tells rsync not to delete more than NUM > files or directories." Also, according to docs, rsync exits with code 25 > if max-delete has been reached. Now, rsync starts with the deletes by > default, an

RE: Is rsync -avS same as rsync -av --sparse

2012-09-06 Thread Voelker, Bernhard
> Subject: Is rsync -avS same as rsync -av --sparse yes. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

RE: cannot rsync when source directory lacks write permission

2012-08-10 Thread Voelker, Bernhard
AndrĂ¡s Porjesz wrote (Friday, August 10, 2012 9:27 AM): > I think all the permission/ownership handling is complicated > (unaccountable, puzzling, peculiar) and the usage is confusing > and annoying I think you didn't get Steven's point: >> [...] The default is >> uid -

RE: Time rsYnc Machine (tym)

2012-08-10 Thread Voelker, Bernhard
M. Carrasco wrote (Friday, August 10, 2012 12:23 AM): > Reading the rsync man page, it seems that the -H option with > --link-dest is tricky. The price to pay on not using -H is that > hard linked files are treated as separated files: I could not > find any mechanism in rsync to improve the time m

RE: change UID+GID on target system?

2012-06-20 Thread Voelker, Bernhard
Uwe Brauer wrote (June 20, 2012 12:57 PM): > >> On Tue, 19 Jun 2012 13:50:00 +, "Voelker, Bernhard" > >> wrote: > >>> Oh I see misunderstanding then. So what you propose is >>> basically a chown of the directory in question? > >

RE: change UID+GID on target system?

2012-06-19 Thread Voelker, Bernhard
Uwe Brauer wrote (June 19, 2012 2:46 PM): > >> On Tue, 19 Jun 2012 08:18:23 +, "Voelker, Bernhard" > >> wrote: > >> Uwe Brauer wrote (June 18, 2012 6:21 PM) >>> >>> rsync -avx /path/to/src oub@localhost:/path/to/usb/dest

RE: change UID+GID on target system?

2012-06-19 Thread Voelker, Bernhard
Uwe Brauer wrote (June 18, 2012 6:21 PM) >>> On Mon, 18 Jun 2012 15:25:30 +, "Voelker, Bernhard" >>> wrote: > > > Uwe Brauer wrote: > > > Why not write the date on the jfs drive as uid=1002 on laptop1? > > > Unfortunately, ssh d

RE: change UID+GID on target system?

2012-06-18 Thread Voelker, Bernhard
Uwe Brauer wrote: > Situation: > On laptop 1, I am user oub (uid=1000) and in the sudo list. > I connect an USB drive (jfs file system), its get automatically > mounted with the correct uid. > I copy files with rsync from laptop 1 to the USB. > ( rsync -auvz --progress /home/oub/files /media/usb )

RE: --link-dest isn't linking

2012-04-22 Thread Voelker, Bernhard
darxus wrote: > rsync -Ha --link-dest=/media/4tb/bak/panic-2012-01-01 > /media/2tb/bak/panic-2012-02-01 /media/4tb/bak/ > > root@dancer:/media/4tb/bak# ls -l panic*/home/darxus/_latest.jpg > -rw--- 15 darxus darxus 100772 1999-09-14 21:19 > panic-2011-12-20/home/darxus/_latest.jpg >

RE: An alternative behavior for symlink

2012-04-04 Thread Voelker, Bernhard
Greg Deback (rsync) wrote: > Hello All, > > I've been googling a lot but I can't find any suitable solution or > advice, so I'm asking you. > I'm trying do find a way to sync two distant folders containing > symlinks pointing to files outside the synced folders BUT with > different target names.

RE: Low performance

2012-01-09 Thread Voelker, Bernhard
Tomasz wrote: > I had network data transfer issue some time ago where transfers in one (A > to B) direction were at full network speed.. Transfers in opposite > directions (B to A) where going at 1 to 2 Kbit/sec. > > Eventually the cause was tracked down and it turned out to be a duplex > misma

RE: disable interpretation of trailing slash

2012-01-09 Thread Voelker, Bernhard
John J Foerch wrote: > So I may take up your suggestion for my own use, but I did want to put > forward the idea that since in my experience, trailing slash > interpretation is an often-mentioned stumbling-block for rsync users, > maybe it would be appropriate for rsync itself to provide a conveni

RE: sync prob with big files

2011-12-09 Thread Voelker, Bernhard
fuzzy_4711 wrote: > At the device to read from I have this file which should be synced to > the target: > -rwxrwxrwx 1 bacula pulse 128497545778 Nov 3 13:19 bkp-nas-0002 > > At the device where the file should have been written, I got this: > -rwxrwxrwx 1 bacula pulse 128497545778 Dec 9 01:28 c

RE: delete files

2011-11-16 Thread Voelker, Bernhard
Brian K. White wrote: > ... Looks like it works, but only for files not directories. > > All I did was change: > rsync $OPTS --include=/$F --exclude='*' $P ${h}::root$P > to > rsync $OPTS --include=/$F --exclude='*' ${P}/. ${h}::root${P}/. > > And now if the file doesn't exist locally it is dele

RE: delete files

2011-11-15 Thread Voelker, Bernhard
Brian K. White wrote: > On 11/14/2011 2:29 AM, Voelker, Bernhard wrote: > > rsync -avx --delete --include=/file --exclude='*' . host2:deltest/. > > This didn't work for me, although one difference is my script specifies > a path instead of "." Do

RE: delete files

2011-11-13 Thread Voelker, Bernhard
Brian K. White wrote: > Is there any way to specify a file to be deleted on the remote side > explicitly by name? yes :-) user@host1:~/deltest> ls -a1 . .. a b c file user@host1:~/deltest> ssh host2 ls -a1 deltest . .. a b c file user@host1:~/deltest> rm file user@host1:~/deltest> rsync -avx --

RE: Strange bug (buffer overflow) happening only under cron

2011-10-31 Thread Voelker, Bernhard
Pedro Fortuny wrote: > I am running OS X Snow Leopard on the 'sender' side and > Linux (2.6.32, possibly fedora but unsure) on the 'receiver' > side. Both with rsync 3.0.9. > > If I run the following command from the command line: > > /usr/local/bin/rsync -av -e "ssh -i \ > /Users/pedrofor

RE: Require Information

2011-10-05 Thread Voelker, Bernhard
Hi, the problem is to lock the databases to get a consistent backup. You'd be better off asking http://www.google.de/#q=mysql+backup . Maybe using a simple mysqldump + transferring the dump to a backup server would meet your requirements (for this, you could use rsync, of course ;-). Have a nice

RE: rsync crash behind a firewall [cygwin]

2011-09-13 Thread Voelker, Bernhard
Wayne Davison wrote: > On Mon, Sep 5, 2011 at 8:10 AM, Voelker, Bernhard > wrote: > > > but why does rsync crash _after_ issueing the error message? > > See the freeaddrinfo fix (git show 5fed6c07). This fix is in 3.0.9pre2, and > 3.0.9 will be released shortl

RE: rsync crash behind a firewall [cygwin]

2011-09-13 Thread Voelker, Bernhard
Hi Wayne, is it 3fd0357f9f9667154f81fa3bb78df5b5063c1684 and fb0d4403f0692ab409df942ff8e13f638ce01ad7 which fix this issue? Have a nice day, Berny -Original Message- From: rsync-boun...@lists.samba.org [mailto:rsync-boun...@lists.samba.org] On Behalf Of Voelker, Bernhard Sent: Monday

RE: Ignoring /boot

2011-09-12 Thread Voelker, Bernhard
Ben Short wrote: > I have the following script that I'm writing to backup my gentoo linux system. > ... > RSYNC_OPTS="--archive --one-file-system --perms --executability --progress > --stats --delete-after --hard-links --keep-dirlinks --verbose --inplace" > RSYNC_USER="bs" > RSYNC_SERVER="192.168

RE: 1 TByte (99,5%) data missing on rsync backup???

2011-09-09 Thread Voelker, Bernhard
Rene Bartsch wrote: > On a NAS are about 1,2 TB data. When I plug in a harddisk and make a > backup with RSync, "df -h" shows the backup disk filling up to nearly 1,2 > TB. But after RSync has > finished, there are only 3.7 GB on the backup disk. I bet you get a good idea what's going on if you lo

rsync crash behind a firewall [cygwin]

2011-09-05 Thread Voelker, Bernhard
As part of coreutils' bootstrap, rsync crashes on cygwin: $ /usr/bin/rsync \ --delete \ --exclude '*.s1' \ -Lrtvz 'translationproject.org::tp/latest/coreutils/' \ 'po/.reference' rsync: failed to connect to translationproject.org (*inet_ntop failed*): Connection refused (111)