Re: rsync --delete with empty source folder for fast snapshot deletion: Permissions of hardlinked files are changed to 644. Workaround?

2023-09-22 Thread rsync--- via rsync
al post here reproduce the permission > change? > > > > PS: In my case the attached script shows (excerpt): > > ./setup_cp_al.sh > > Tested with > - rsync  version 3.2.7  protocol version 31 > - ext4 file system > - Ubuntu 22.04 > > File stats BEFORE rsync

Re: rsync --delete with empty source folder for fast snapshot deletion: Permissions of hardlinked files are changed to 644. Workaround?

2023-09-22 Thread rsync--- via rsync
e the permission change? - Q: Did my script attached to the initial post here reproduce the permission change? PS: In my case the attached script shows (excerpt): ./setup_cp_al.sh Tested with - rsync version 3.2.7 protocol version 31 - ext4 file system - Ubuntu 22.04 File stats BEFORE

Re: rsync --delete with empty source folder for fast snapshot deletion: Permissions of hardlinked files are changed to 644. Workaround?

2023-09-22 Thread Paul Slootman via rsync
On Fri 22 Sep 2023, Kevin Korb via rsync wrote: > 444 {} +' to make read only files for rsync to want to chmod, then used cp > -al to make several duplicate trees using hard linked files. An rm -rf on > one such tree took .97 seconds while an rsync deletion took 1.25 seconds. Be sure to drop the

Re: rsync --delete with empty source folder for fast snapshot deletion: Permissions of hardlinked files are changed to 644. Workaround?

2023-09-22 Thread Kevin Korb via rsync
So I decided to do a quick test using the Linux kernel source tree since it has lots of files. I duplicated a tree, used 'find . -type f -exec chmod 444 {} +' to make read only files for rsync to want to chmod, then used cp -al to make several duplicate trees using hard linked files. An rm -r

Re: rsync --delete with empty source folder for fast snapshot deletion: Permissions of hardlinked files are changed to 644. Workaround?

2023-09-22 Thread rsync--- via rsync
On Thu, 2023-09-21 at 20:08 -0400, Kevin Korb via rsync wrote: > I have heard in the past that rsyncing an empty dir over a tree to > delete the tree is faster than an rm -rf but I can't say I have ever > benchmarked it to get any actual numbers. This **may** indeed be a myth (for a long time n

Re: rsync --delete with empty source folder for fast snapshot deletion: Permissions of hardlinked files are changed to 644. Workaround?

2023-09-21 Thread Kevin Korb via rsync
I had intended to come back to this but because I didn't really think I had anything to add to the discussion I put it at a low enough priority that I forgot about it. But I saw your bug report and was surprised to see that I was already unhelpful on this topic but because that original poster

rsync --delete with empty source folder for fast snapshot deletion: Permissions of hardlinked files are changed to 644. Workaround?

2023-09-18 Thread rsync--- via rsync
wner source/* snapshot1/ mkdir snapshot2 # rsync --recursive --times --devices --specials --hard-links --human-readable -s --links --perms --executability --group --owner --link-dest=../snapshot1 source/* snapshot2/ rsync --perms --executability --group --owner --link-dest=../snapshot1 source/*

[Bug 13991] rsync --delete --one-file-system skips deletes after crossing filesystems on destination.

2020-06-12 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=13991 Wayne Davison changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 13991] rsync --delete --one-file-system skips deletes after crossing filesystems on destination.

2019-06-10 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=13991 --- Comment #1 from Bruce Arden --- Created attachment 15235 --> https://bugzilla.samba.org/attachment.cgi?id=15235&action=edit Commands to demonstrate further problem set VG to an LVM volumegroup with spare space On my machine this gives: ...

[Bug 13991] New: rsync --delete --one-file-system skips deletes after crossing filesystems on destination.

2019-06-09 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=13991 Bug ID: 13991 Summary: rsync --delete --one-file-system skips deletes after crossing filesystems on destination. Product: rsync Version: 3.1.3 Hardware: All

[Bug 11086] rsync --delete has stopped to delete destination files that don't exist at the source

2015-07-12 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11086 Wayne Davison changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

Re: rsync --delete

2015-04-16 Thread Matthias Schniedermeyer
On 16.04.2015 12:20, ? ?? wrote: > Hi, Rsync. > > find /home/rc-41/data/061/2015-04-01-07-04/ -delete > I know not suitable -mindepth 1 ? That deletes the whole contents, but doesn't delete the folder itself. -- Matthias -- Please use reply-all for most replies to avoid

Re: rsync --delete

2015-04-16 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I thought of something else if it must be rsync that is used... rsync -a --delete --exclude='*' --delete-excluded /anywhere/ /stuff/to/delete/ That would empty the target dir regardless of what is in the source dir. I would still like to hear how th

Re: rsync --delete

2015-04-16 Thread Ken Chase
problem is he's trying to rsync into the target dir and have the side effect of delete. so an empty dir would necessarily need to be in the target of course and thus created there, triggering the quota block. he tried to avoid this by using device files then 'blocking all device files' but i think

Re: rsync --delete

2015-04-16 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I don't understand what is wrong with rm either. But if you must have an empty directory is there a tmpfs where you can make one? Is there already an empty one like /var/empty? On 04/16/2015 10:13 AM, Ken Chase wrote: > Wow, it took me a few seconds

Re: rsync --delete

2015-04-16 Thread Ken Chase
Wow, it took me a few seconds to figure out what you were trying to do. What's wrong with rm? Also I think trying to leverage the side of disqualifying all source files just to get the delete effect (very clever but somewhat obtuse!) risks creating a temporary file of some kind in the target at t

rsync --delete

2015-04-16 Thread Дугин Сергей
Hi, Rsync. I want to help rsink delete a folder with a large number of files and folders. Tried this: rsync -a --no-D --delete /dev/null /home/rc-41/data/061/2015-04-01-07-04/ skipping non-regular file "null" rsync -a --no-D --delete /dev/zero /home/rc-41/data/061/2015-

[Bug 11086] rsync --delete has stopped to delete destination files that don't exist at the source

2015-01-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11086 --- Comment #5 from Kevin Korb --- Not really. I wrote my own. IIRC BackupPC is the most up to date one. -- You are receiving this mail because: You are the QA Contact for the bug. -- Please use reply-all for most replies to avoid omitting the

[Bug 11086] rsync --delete has stopped to delete destination files that don't exist at the source

2015-01-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11086 --- Comment #4 from ddd --- Well, maybe I should look into those rsync-based snapshot systems when I'll buy another 3 TB HDD. ) Can you recommend any of those backup systems? -- You are receiving this mail because: You are the QA Contact for the

[Bug 11086] rsync --delete has stopped to delete destination files that don't exist at the source

2015-01-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11086 --- Comment #3 from Kevin Korb --- What you have is a mirror not a backup system. Sure, it can protect you from accidental deletions or disk failures but it wouldn't protect you from intentional data destruction (think virus or hacker). Yes, I wa

[Bug 11086] rsync --delete has stopped to delete destination files that don't exist at the source

2015-01-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11086 --- Comment #2 from ddd --- Thank you a lot! I added --exclude='.gvfs' parameter and everything works now. Thumbs up! I was trying to use --delete-before because of low space on the partition. Now it's really enough space and I use default --delet

[Bug 11086] rsync --delete has stopped to delete destination files that don't exist at the source

2015-01-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11086 --- Comment #1 from Kevin Korb --- This is your problem: > 2015/01/31 17:25:58 [12091] rsync: readlink_stat("/home/myuser/.gvfs") > failed: Permission denied (13) If rsync hits any error it aborts the deletion process which it would have said wit

[Bug 11086] New: rsync --delete has stopped to delete destination files that don't exist at the source

2015-01-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11086 Bug ID: 11086 Summary: rsync --delete has stopped to delete destination files that don't exist at the source Product: rsync Version: 3.1.1 Hardware: x64

Re: rsync --delete-hide

2014-04-06 Thread Anish Shankar
te: > > Hello! > > I was wondering wether or not this would be a viable option to add to > rsync: > > --delete-hide > > Instead of deleting the file, rsync would rename the file using leading > "." and trailing ".deleted-{timestamp}". > > rsync

rsync --delete-hide

2014-04-06 Thread Saku Vainikainen
Hello! I was wondering wether or not this would be a viable option to add to rsync: --delete-hide Instead of deleting the file, rsync would rename the file using leading “.” and trailing “.deleted-{timestamp}”. rsync -rv --delete-hide /src/ /dst/ For example if /src/readme.txt had already

rsync --delete not working (no wildcards)

2013-01-30 Thread Stewart Jeacocke
>>On 01/28/13 17:02, Stewart Jeacocke wrote: >> I'm trying to copy some directories with rsync and would like to >> delete files from the destination if they no longer exist in the >> source. >> >> I'm using the following command: >> >> rsync -v --archive --hard-links --delete --force >> --filter='

Re: rsync --delete not working (no wildcards)

2013-01-28 Thread Fabian Cenedese
At 22:02 28.01.2013 +, Stewart Jeacocke wrote: >Hi, > >I'm trying to copy some directories with rsync and would like to >delete files from the destination if they no longer exist in the >source. > >I'm using the following command: > >rsync -v --archive --hard-links --delete --force >--filter=':

Re: rsync --delete not working (no wildcards)

2013-01-28 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any output? How about with an additional -v ? Is there a .rsync-filter file anywhere? On 01/28/13 17:02, Stewart Jeacocke wrote: > Hi, > > I'm trying to copy some directories with rsync and would like to > delete files from the destinatio

rsync --delete not working (no wildcards)

2013-01-28 Thread Stewart Jeacocke
Hi, I'm trying to copy some directories with rsync and would like to delete files from the destination if they no longer exist in the source. I'm using the following command: rsync -v --archive --hard-links --delete --force --filter=':/.rsync-filter' /opt/ /mnt/backup/opt/ /opt does not contain

Re: Understanding rsync --delete behavior

2012-06-17 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My guess is that you did it wrong once in the past and have an extra /mnt/AS5/AS5 on the target that is being purged. Take a look for that possibility and also try again with an addition -v and with - --itemize-changes. On 06/17/12 20:55, Richard Zin

Understanding rsync --delete behavior

2012-06-17 Thread Richard Zinar
Hi, When running an rsync command of the form: $ rsync -avn --delete remotehost:/mnt/volsw_dev/AS5/ /mnt/volsw_dev/AS5 rsync wants to delete a slew of files and directories. Partial output includes, for example: deleting AS5/zeromq/2.2.0/share/man/man7/zmq_tcp.7 deleting AS5/zeromq/2.2.0/sha

DO NOT REPLY [Bug 5939] rsync: delete of stat xattr failed for ... (in backup): Operation not permitted (1)

2011-02-22 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=5939 way...@samba.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

DO NOT REPLY [Bug 5939] rsync: delete of stat xattr failed for ... (in backup): Operation not permitted (1)

2009-07-14 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=5939 --- Comment #3 from wthr...@mit.edu 2009-07-14 22:03 CST --- Created an attachment (id=4418) --> (https://bugzilla.samba.org/attachment.cgi?id=4418&action=view) Patch to ignore "delete of stat xattr" failures on symlinks -- Configure

DO NOT REPLY [Bug 5939] rsync: delete of stat xattr failed for ... (in backup): Operation not permitted (1)

2009-07-14 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=5939 wthr...@mit.edu changed: What|Removed |Added CC||wthr...@mit.edu --- Comment #2 fro

Re: rsync delete architecture

2009-05-28 Thread Matt McCutchen
On Mon, 2009-05-18 at 02:28 -0700, tammy wrote: > I have 3 load balancing servers. Each user may login to different servers to > upload their data, lets say, a company logo. > That's why i tried to use rsync to synchronize the uploaded logo and some > other necessary modules. This mean, each server

rsync delete architecture

2009-05-18 Thread tammy
so..? Any comment or suggestion are mostly welcome.. -- View this message in context: http://www.nabble.com/rsync-delete-architecture-tp23594031p23594031.html Sent from the Samba - rsync mailing list archive at Nabble.com. -- Please use reply-all for most replies to avoid omitting the mailin

Re: "rsync --delete" won't delete certain files

2009-03-26 Thread Peter Daum
Peter Daum wrote: - The problem only occurs when there is more than 1 file system to sync. When I only backup "/", everything is fine, when I add another source file system, nothing below "/var" will be deleted (I still don't have a clue, why this occurs on "/var" but not on other paths)

Re: "rsync --delete" won't delete certain files

2009-03-26 Thread Peter Daum
Hi, I still couldn't find a really simple test case but at least I can provide some more details regarding this obscure issue: - The problem only occurs when there is more than 1 file system to sync. When I only backup "/", everything is fine, when I add another source file system, nothing b

Re: "rsync --delete" won't delete certain files

2009-03-23 Thread Peter Daum
Hi, Izidor Jerebic wrote: Are there any errors while doing the rsync? I have recently discovered that to create identical copy on mac os x (in the presence of any errors), you need to additionally specify --ignore-errors and --force-delete, otherwise nothing will be deleted (it seems that

Re: "rsync --delete" won't delete certain files

2009-03-23 Thread Izidor Jerebic
Hello, Peter, Are there any errors while doing the rsync? I have recently discovered that to create identical copy on mac os x (in the presence of any errors), you need to additionally specify -- ignore-errors and --force-delete, otherwise nothing will be deleted (it seems that as soon as

"rsync --delete" won't delete certain files

2009-03-22 Thread Peter Daum
Hi, as I just discovered, in recent versions of rsync the "--delete" option seems to not work in certain cases. I couldn't come up with a simple scenario to reproduce the problem, so I'll have to tell the whole story: I use rsync to regularly backup a system onto other disks. The filesystems I w

DO NOT REPLY [Bug 6041] rsync --delete from ext3 to hfs+ always deletes files with special characters in name.

2009-01-18 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6041 i...@retrosync.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

DO NOT REPLY [Bug 6041] rsync --delete from ext3 to hfs+ always deletes files with special characters in name.

2009-01-16 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6041 --- Comment #1 from m...@mattmccutchen.net 2009-01-16 20:58 CST --- The FAQ discusses a problem copying to HFS+: http://rsync.samba.org/FAQ.html#2 Is this what you are seeing? -- Configure bugmail: https://bugzilla.samba.org/userpre

DO NOT REPLY [Bug 6041] New: rsync --delete from ext3 to hfs+ always deletes files with special characters in name.

2009-01-15 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6041 Summary: rsync --delete from ext3 to hfs+ always deletes files with special characters in name. Product: rsync Version: 3.1.0 Platform: x86 OS/Version: Mac OS X

DO NOT REPLY [Bug 5939] rsync: delete of stat xattr failed for ... (in backup): Operation not permitted (1)

2008-12-04 Thread samba-bugs
(home/testuser/amazon/startupscript.sh,7) rsync: delete of stat xattr failed for "home/testuser/amazon/startupscript.sh" (in backup): Operation not permitted (1) set modtime of home/testuser/amazon/startupscript.sh to (1228399898) Thu Dec 4 14:11:38 2008 set uid of home/testuser/amazon/startu

DO NOT REPLY [Bug 5939] New: rsync: delete of stat xattr failed for ... (in backup): Operation not permitted (1)

2008-12-04 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=5939 Summary: rsync: delete of stat xattr failed for ... (in backup): Operation not permitted (1) Product: rsync Version: 3.0.4 Platform: Other OS/Version: Linux Status

Re: rsync --delete problem with accent characters on Mac OS X HFS

2008-08-19 Thread Matt McCutchen
On Wed, 2008-08-20 at 00:20 +0200, Komáromi Tamás wrote: > I would like to sync my Linux firewall to my Mac OS X. > The rsync deletes my files with accents and download it again. > $ /sw/bin/rsync --archive --update --verbose --delete firewall:teszt . > receiving incremental file list > deleting

rsync --delete problem with accent characters on Mac OS X HFS

2008-08-19 Thread Komáromi Tamás
Hello, I would like to sync my Linux firewall to my Mac OS X. The Linux is a Debian 4.0 with ext3 filesystem (UTF-8) $ rsync --version rsync version 3.0.2 protocol version 30 The Mac OS X is a 10.5 Leopard with HFS+ (UTF-8) $ /sw/bin/rsync --version rsync version 3.0.3 protocol version 30 (

Re: rsync --delete isn't deleting files

2008-08-10 Thread Tiago Marques
I see, you're right :) Is there anything useful that can be donated to the rsync developers? Keep up the great work. Best regards, Tiago Marques On Sun, Aug 10, 2008 at 11:16 PM, Matt McCutchen <[EMAIL PROTECTED]> wrote: > On Sun, 2008-08-10 at 23:04 +0100, Tiago Marque

Re: rsync --delete isn't deleting files

2008-08-10 Thread Matt McCutchen
On Sun, 2008-08-10 at 23:04 +0100, Tiago Marques wrote: > It worked, --delete-excluded was all that was missing. > I really think this should be the implied behavior and would like to > see it as default, if there really isn't a good reason for it being > this way. The current behavior is useful i

Re: rsync --delete isn't deleting files

2008-08-10 Thread Tiago Marques
Thanks! It worked, --delete-excluded was all that was missing. I really think this should be the implied behavior and would like to see it as default, if there really isn't a good reason for it being this way. Best regards, Tiago Marques On Sun, Jul 13, 2008 at 6:26 P

Re: rsync --delete* Bug or feature-request

2008-07-29 Thread Matt McCutchen
On Tue, 2008-07-29 at 12:10 -0400, Matt McCutchen wrote: > You are welcome to request an option to make rsync delete destination > files that are matched in --compare-dest dirs. I would actually suggest > a more general option called --recheck-basis-dirs that also replaces a > dest

Re: rsync --delete* Bug or feature-request

2008-07-29 Thread Matt McCutchen
But Is it really a bug ? > or may I request a --delete-if-found-in-compare-dir ? Rsync is behaving as expected. The man page description of --link-dest says, "rsync treats existing files as definitive (so it never looks in the link-dest dirs when a destination file already exists)"; it wo

rsync --delete* Bug or feature-request

2008-07-29 Thread Gabriel CORRE
Hello, I'm trying to do a differential backup. Each commands/scripts are launch on backup server side. - rsync-ref: 1 script perform a complete backup to a directory "ref". something like that: rsync --archives \ station:/path1/ /servbasepath/ref/servpath1/ - rsync-diff: 1 script p

Re: rsync --delete isn't deleting files

2008-07-13 Thread Matt McCutchen
Rsync 2.6.9 seems to think that the destination is already up to date. What do you expect it to do that it isn't doing? Update an existing file? (What are the size and mtime of that file and the corresponding source file?) Delete an extraneous file? (Note that you'll have to convert the exclude

Re: rsync --delete isn't deleting files

2008-07-12 Thread Matt McCutchen
On Sat, 2008-07-12 at 03:48 +0100, Tiago Marques wrote: > Hmm, looks like I'm not done with this, yet. > With rsync 3.02, it works fine: > > rsync --exclude='/*/' --delete-before -tvlpr > rsync://rsync.sabayonlinux.org/SabayonLinux/ /storage/mirrors/ > > But not with the 2.6.9 version :| > I just

Re: rsync --delete isn't deleting files

2008-07-11 Thread Tiago Marques
Hmm, looks like I'm not done with this, yet. With rsync 3.02, it works fine: rsync --exclude='/*/' --delete-before -tvlpr rsync://rsync.sabayonlinux.org/SabayonLinux/ /storage/mirrors/ But not with the 2.6.9 version :| I just get this, with the mirror completely outdated: receiving

Re: rsync --delete isn't deleting files

2008-07-11 Thread Tiago Marques
Indeed, that worked great for me! Big thanks to both for your time. Tiago Marques On 7/11/08, Matt McCutchen <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-11 at 13:01 -0700, Wayne Davison wrote: > > On Fri, Jul 11, 2008 at 04:22:04PM +0100, Tiago Marques wrote: > > > I was already

Re: rsync --delete isn't deleting files

2008-07-11 Thread Matt McCutchen
On Fri, 2008-07-11 at 13:01 -0700, Wayne Davison wrote: > On Fri, Jul 11, 2008 at 04:22:04PM +0100, Tiago Marques wrote: > > I was already using the -d option, it download the subdirs also. > > You also need to not use -r (e.g. either expand -a and omit -r, or > specify --no-r). -d will create th

Re: rsync --delete isn't deleting files

2008-07-11 Thread Wayne Davison
On Fri, Jul 11, 2008 at 04:22:04PM +0100, Tiago Marques wrote: > I was already using the -d option, it download the subdirs also. You also need to not use -r (e.g. either expand -a and omit -r, or specify --no-r). ..wayne.. -- Please use reply-all for most replies to avoid omitting the mailing l

Re: rsync --delete isn't deleting files

2008-07-11 Thread Tiago Marques
I was already using the -d option, it download the subdirs also. The --exclude option worked fine though, and --delete-before is now working very well. Tks to all! Best regards, Tiago Marques On Fri, Jul 4, 2008 at 11:18 PM, Wayne Davison <[EMAIL PROTECTED]> wrote: > On F

Re: rsync --delete isn't deleting files

2008-07-04 Thread Wayne Davison
On Fri, Jul 04, 2008 at 05:08:41PM -0400, Matt McCutchen wrote: > Use --recursive and then exclude the stuff you don't want, e.g., > --exclude='/*/' to exclude all subdirectories. You can also use -d (--dirs) instead of -r (--recursive). That makes rsync transfer just the contents of a specified

Re: rsync --delete isn't deleting files

2008-07-04 Thread Matt McCutchen
On Fri, 2008-07-04 at 20:11 +0100, Tiago Marques wrote: > In the past, since > --delete-before did nothing, I did a dry run and then parsed the > output to have it "rm" the files that were to be deleted. That so also > because the --delete needs the --recursive option, which for me is > very imprac

Re: rsync --delete isn't deleting files

2008-07-04 Thread Wayne Davison
On Fri, Jul 04, 2008 at 08:11:36PM +0100, Tiago Marques wrote: > rsync --delete-before -v -tvlpr > rsync://rsync.sabayonlinux.org/SabayonLinux/* ./ --dry-run Check out the manpage on the --delete option. The very first paragraph tells you why you shouldn't be using a wildcar

Re: rsync --delete isn't deleting files

2008-07-04 Thread Tiago Marques
Inside the target dir, there is a file named "asdasdasd" which isn't deleted, nor mentioned to, since this is a dry-run. with: rsync --delete-before -v -tvlpr rsync://rsync.sabayonlinux.org/SabayonLinux/* ./ -

Re: rsync --delete isn't deleting files

2008-07-04 Thread Matt McCutchen
On Fri, 2008-07-04 at 16:13 +0100, Tiago Marques wrote: > I had this working on an older version, since 2.6.9 that when I set > --delete and --dry-run, I get no "Deleting **" lines. Be sure to pass -v because, since rsync 2.6.7, --dry-run no longer implies it: http://gitweb.samba.org/?p=rsync

rsync --delete isn't deleting files

2008-07-04 Thread Tiago Marques
I had this working on an older version, since 2.6.9 that when I set --delete and --dry-run, I get no "Deleting **" lines. Also, the --delete-before never worked for me. Working on a space constrained mirror, this has proven very handy, when it works. What's up with the new versions? I haven't c

Re: rsync --delete (but not all files) question

2008-06-10 Thread Wayne Davison
On Tue, Jun 10, 2008 at 03:03:23AM -0700, GiveMF wrote: > So I want to sync from the dev directory (which doesn't have .svn > directories) to one that does. An exclude does two things: it prevents files that match from being transferred from the sender, and it protects files that match from being

rsync --delete (but not all files) question

2008-06-10 Thread GiveMF
sure how to use --delete and still keep certain files / dirs (those .svn dirs). Any help would be appreciate. Thanks, GMF. -- View this message in context: http://www.nabble.com/rsync---delete-%28but-not-all-files%29-question-tp17751838p17751838.html Sent from the Samba - rsync mailing list archiv

Re: rsync du (was rsync delete)

2007-12-23 Thread Olivier Thauvin
Le dimanche 23 décembre 2007, Matt McCutchen a écrit : > On Sat, 2007-12-22 at 18:47 -0800, Jesse Thompson wrote: > > Now I'm interested in a new possibility however. Using rsync > > (connecting to a remote rsync server via rsync protocol) is there a > > way to measure the size of a directory, kind

Re: rsync du (was rsync delete)

2007-12-22 Thread Matt McCutchen
On Sat, 2007-12-22 at 18:47 -0800, Jesse Thompson wrote: > Now I'm interested in a new possibility however. Using rsync > (connecting to a remote rsync server via rsync protocol) is there a > way to measure the size of a directory, kind of like du, without > having to transfer it? Yes. Do a trans

Re: rsync --delete problems

2007-12-03 Thread Torben Schou Jensen
Seams I have sorted out my problem until futher. By doing rsync over SSH to my NAS drive instead of mapping my NAS drive using smbmount, --delete works fine. /Torben > For some time I have been using rsync to backup data between different > machines and my NAS drive. > > But within the last 2 da

rsync --delete problems

2007-12-01 Thread Torben Schou Jensen
For some time I have been using rsync to backup data between different machines and my NAS drive. But within the last 2 days I have found out that rsync is not removing old files from destination - directories renamed or removed from source. In this example I want to sync files on my Debian Linux

DO NOT REPLY [Bug 5091] Incremental-recursive, list-only "rsync --delete" tries to clean out working dir

2007-11-21 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=5091 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

DO NOT REPLY [Bug 5091] New: Incremental-recursive, list-only "rsync --delete" tries to clean out working dir

2007-11-19 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=5091 Summary: Incremental-recursive, list-only "rsync --delete" tries to clean out working dir Product: rsync Version: 3.0.0 Platform: x86 OS/Version: Linux S

Re: rsync delete

2007-11-04 Thread Matt McCutchen
On Sun, 2007-11-04 at 13:50 -0800, Jesse Thompson wrote: > What would be the closest approximation to something like this? > > # rsync -r --just-nuke-the-target remote::volume/directory > > Is it something that can be done with rsync? Yes, but it is a bit awkward because rsync considers deletio

rsync delete

2007-11-04 Thread Jesse Thompson
Hello :) I am trying to build a backup system based upon Rsync, and I have a question about it's deleting features. I want to be able to use rsync to delete and remove a directory from the remote server, similar to "rm -Rf directory" The closest I seem to be able to get is the following progress

Re: rsync --delete issue

2007-08-25 Thread Matt McCutchen
On 8/25/07, Ameerov <[EMAIL PROTECTED]> wrote: > Hi, I hope this is the right place to post this... I came across this > old unsolved post that is describing the exact problem i am having, > tried emailing the author but the email bounced. > > http://lists.samba.org/archive/rsync/2006-June/015697.

rsync --delete issue

2007-08-25 Thread Ameerov
Hi, I hope this is the right place to post this... I came across this old unsolved post that is describing the exact problem i am having, tried emailing the author but the email bounced. http://lists.samba.org/archive/rsync/2006-June/015697.html Basically files on the destination get deleted

Re: rsync --delete-existing needed

2007-05-06 Thread Matt McCutchen
On 5/5/07, Matthias Schniedermeyer <[EMAIL PROTECTED]> wrote: If you have subdirectories to be killed: find . -type d -empty -exec rmdir {}\; You have to run that a few times (One time for each deepth-level), and don't worry about the 'No such file or directory' warnings that it will spit for e

Re: rsync --delete-existing needed

2007-05-05 Thread Matthias Schniedermeyer
Erik Red wrote: > Hi, > > I made the mistake of doing an rsync of a directory into the wrong > destination, > so that the destination became a mix of two directories of unrelated files. > > Top unravel the mess, I could need something like a --delete-existing > option. > > The semantics would be

rsync --delete-existing needed

2007-05-05 Thread Erik Red
Hi, I made the mistake of doing an rsync of a directory into the wrong destination, so that the destination became a mix of two directories of unrelated files. Top unravel the mess, I could need something like a --delete-existing option. The semantics would be to delete at the destination O

RE: rsync --delete is not deleting

2007-04-12 Thread Hedley J. Phillips
I managed to solve this in the end. It was file permissions. I had originally copied all the data across by restoring from Backup tape and then started using Rsync to keep the two identical. After deleting the directories in question and rsyncing them from scratch, the problem has been solved.

rsync --delete is not deleting

2007-03-15 Thread Hedley J. Phillips
Hi, wondering if someone can help. I have googled for this and scoured the man page, but have got no further. I am running rsync 2.6.6 on windows and am finding it doesn't delete files from the target. For example my batch file has: rsync -av --delete /cygdrive/G/SAN_ARRAY/XPP_Data/alljobz/ /

Re: rsync --delete problem

2006-06-07 Thread Wayne Davison
On Mon, Jun 05, 2006 at 08:19:24AM -0500, Smemoe, Richard L. wrote: > It looks like it's only copying the changes to the original filesystem > since the last rsync. That's not very likely to be what is happening. I'd suggest using the -v option so that you can see what rsync is deleting -- this s

RE: rsync --delete problem

2006-06-05 Thread Smemoe, Richard L.
lete-during /production/filesystem/ .', but this gave me nothing in my backup filesystem. Thanks, Richard -Original Message- From: Wayne Davison [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 11:37 AM To: Smemoe, Richard L. Cc: rsync@lists.samba.org Subject: Re: rsync --

Re: rsync --delete problem

2006-06-01 Thread Wayne Davison
On Thu, Jun 01, 2006 at 09:31:49AM -0500, Smemoe, Richard L. wrote: > When I added the -delete option, my backup started taking about two > days to finish. You'd be better off using --del (--delete-during) than --delete, as it doesn't require a separate scan through the destination hierarchy. Al

rsync --delete problem

2006-06-01 Thread Smemoe, Richard L.
Hello,   I need to create a local backup every night of a filesystem that has about 3.5 million files.  I’ve been using rsync and everything has been fine until I started to use the –delete option to delete files on the backup that don’t exist in the production data.  When I added the –de

Re: can rsync delete only one file in one command? is it a bug?

2006-03-27 Thread Wayne Davison
On Tue, Mar 28, 2006 at 09:39:07AM +0800, Huang, YongHui wrote: > why it NOT delte /D01/003.doc? is it a bug? Nope. Your exclude affected directory D01, so the include has no chance to effect anything. Add a preceding --include=/D01/ and try again. ..wayne.. -- To unsubscribe or change options

can rsync delete only one file in one command? is it a bug? 2.6.6

2006-03-27 Thread Huang, YongHui
Rsync version 2.6.6   I want to call rsync from java webserver in Linux.     situation as below:   source directory: 001.doc 002.doc /D01/001.doc /D01/002.doc /D01/D11/001.doc /D02/001.doc     destination directory: 001.doc 003.doc 004.doc /D01/001.doc /D01/003.doc /D01/004.doc /D01/D11/00

can rsync delete only one file in one command? is it a bug?

2006-03-27 Thread Huang, YongHui
I want to call rsync from java webserver in Linux.   situation as below:   source directory: 001.doc 002.doc /D01/001.doc /D01/002.doc /D01/D11/001.doc /D02/001.doc     destination directory: 001.doc 003.doc 004.doc /D01/001.doc /D01/003.doc /D01/004.doc /D01/D11/003.doc /D02/003.doc   now,

RE: Using --files-from but also having rsync delete...

2005-02-27 Thread Eli
Wayne wrote: > On Sun, Feb 27, 2005 at 05:34:48PM -0500, Eli wrote: > > It would build the file list and copy over some files, but not > > everything. Even with --delete-excluded it still didn't > delete files > > on the dest server that weren't on the src system. > > Then you must have done

Re: Using --files-from but also having rsync delete...

2005-02-27 Thread Wayne Davison
On Sun, Feb 27, 2005 at 05:34:48PM -0500, Eli wrote: > It would build the file list and copy over some files, but not > everything. Even with --delete-excluded it still didn't delete files > on the dest server that weren't on the src system. Then you must have done something wrong, such as still

RE: Using --files-from but also having rsync delete...

2005-02-27 Thread Eli
Wayne wrote: > On Sun, Feb 27, 2005 at 04:31:15AM -0500, Eli wrote: > > I thought I could use --include-from and then add > --exclude='*' to see > > if rsync would backup what I needed and then delete > anything not in my > > list from the rsync server side, however it did not, not to mention

Re: Using --files-from but also having rsync delete...

2005-02-27 Thread Wayne Davison
On Sun, Feb 27, 2005 at 04:31:15AM -0500, Eli wrote: > I thought I could use --include-from and then add --exclude='*' to see if > rsync would backup what I needed and then delete anything not in my list > from the rsync server side, however it did not, not to mention coming up > quite short in the

Using --files-from but also having rsync delete...

2005-02-27 Thread Eli
I am using rsync with --files-from to specify an exclusive list of files for rsync to back up to an rsync server. I give rsync the list using find to spit out a list of files that are 2 or more days old from a list of files that can change. The backup of the files works perfectly, however I reali

Re: Can rsync delete file without receive?

2004-12-19 Thread Wayne Davison
On Fri, Dec 17, 2004 at 05:00:04PM +0800, kevinwatt wrote: > I want client could delete the files which are don't exist on > sender. but without to receive the new files back. You could run rsync in --dry-run mode and pipe the output to a script that will notice all the "deleting" lines and remov

Can rsync delete file without receive?

2004-12-17 Thread kevinwatt
Hello everyone, for some reason, I want client could delete the files which are don't exist on sender. but without to receive the new files back. how to do it? I have been try a few way. but just can't work currect. Sincerely, Yen dewei -- To unsubscribe or change options: https://lists.sa

Re: Bug in rsync? (--delete[-after])

2004-09-09 Thread Stefan Hoelldampf
Kjell Andresen wrote: > The problem is in short that rsync used with the option --delete-after > does NOT delete older files rsynced, but --delete does. > The versions I have used is, from [fra (no.)] > hox /# rsync --version > rsync version 2.5.5 protocol version 26 > > - and to [til (no.)]:

Bug in rsync? (--delete[-after])

2004-09-09 Thread Kjell Andresen
Hello! I think I've found a bug in some (older) versions of rsync. The problem does not seem to have been reported at bugzilla. And of the 9 bugs found there by searching on "--delete-after" all have got the name [EMAIL PROTECTED] attached. I ask you therefore to check if this problem is found i

  1   2   >