It doesn't seem like the trailing / on the target should matter. It
only means something special on the source.
However, if there is any error then rsync will abort the deletions for
safety.
On 4/3/19 2:10 PM, lugarci1 via rsync wrote:
> Hi, I was trying to make a mirror backup of a folder in my
Hi, I was trying to make a mirror backup of a folder in my machine with the
following command:
rsync -avh --delete /source/ /destination
But the extra files that where on "destination" didn't got deleted. Where
as doing:
rsync -avh --delete /source/ /destination/
worked as expected.
I wonder if t
--delete means delete from the target what isn't on the source (except
what is excluded). Those look like temp files. Possibly from another
rsync that is running at the same time.
On 05/01/2017 12:36 AM, Chandana De Silva via rsync wrote:
> All,
> I have an rsync based backup process which uses
All,
I have an rsync based backup process which uses rsyncd on the source,
to backup to a directory on the client.
I have rsync version 3.1.2 on the client and 2.6.8 on the source host
(daemon).
The rysnc command I use is;
/usr/bin/rsync -aHzS --partial --numeric-ids --delete --timeout=3600 \
eskip files that are newer on the receiver
>
> doesn't prevent deleting for files not existing on source side?
>
>
>> On 08/24/11 15:38, Saman Ghannadzadeh wrote:
>>> Hi all,
>>>
>>> I was wondering if it's possible to make the --del
Hi all,
I was wondering if it's possible to make the --delete option to not
delete files that have been newly created on the destination site but
which do not yet exist on the source side.
However it should still delete files that did exist on the source side
but were subsequently deleted.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Unfortunately rsync has no concept of "newly created".
On 08/24/11 15:38, Saman Ghannadzadeh wrote:
> Hi all,
>
> I was wondering if it's possible to make the --delete option to not
> delete files that have been newly crea
Hi all,
I was wondering if it's possible to make the --delete option to not
delete files that have been newly created on the destination site but
which do not yet exist on the source side.
However it should still delete files that did exist on the source side
but were subsequently deleted.
Hello,
I'm trying to build a bullet-proof rsync deployment, using rsync version
3.0.8 protocol version 30, and I'll be using the --delete option. As a way
of limiting any catastrophic losses I'm thinking about using --max-delete. I
have a couple of questions:
- If the ma
On Tue, May 10, 2011 at 7:51 AM, Ted Gilchrist wrote:
> However, I wake up in a cold sweat worrying about supplying the empty string
> for source_dir, and thus removing souce_dir, and all it's siblings on
> target_machine.
Your best bet is to error-check your args in your script prior to
callin
ir
>
> In other words, I am replicating source_dir on a remote machine. It ends up
> next to a lot of sibling, directories, like this:
>
> On target_machine
>
> /parent_path/source_dir
> /parent_path/source_dir2
>
> /parrent_path/source_dirn
>
> Here&
replicating source_dir on a remote machine. It ends up
next to a lot of sibling, directories, like this:
On target_machine
/parent_path/source_dir
/parent_path/source_dir2
/parrent_path/source_dirn
Here's my issue. I'd like to use the --delete option in the command above.
However, I wake up
On Mon, 2010-02-08 at 20:19 +0200, Emil Genchev wrote:
> is there a way to have a absolute file paths in a file - and use
> --files-from together with --delete option?
> what i mean is - lets say i have a daily generated file a.txt from an
> external script which contains somethi
Hi Guys,
is there a way to have a absolute file paths in a file - and use
--files-from together with --delete option?
what i mean is - lets say i have a daily generated file a.txt from an
external script which contains something like this:
/level1/level2/level/.../.../leveln/file.txt
can i ask
Dear List,
If I use -acv for rsync options, what will I choose as default "delete
option"?
--deletedelete extraneous files from destination dirs
--delete-before receiver deletes before transfer, not during
--delete-during receiver deletes during transfe
On Fri 18 May 2007, Charles Haven wrote:
> Thank you! That's what I thought.
>
> Where did you pull that text? I have gone through the man page and several
It's in the manpage...
Paul Slootman
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting,
On Fri 18 May 2007, Charles Haven wrote:
>
> I want to copy all files on the SRC side to the DST side without deleteing
> any from the DST side. However, whenever I run rsync the files on the DST
> side are deleted if they were deleted from the SRC side. What am I doing
> wrong?
>
> I am running
Hello all,
I want to copy all files on the SRC side to the DST side without deleteing
any from the DST side. However, whenever I run rsync the files on the DST
side are deleted if they were deleted from the SRC side. What am I doing
wrong?
I am running the following command:
===
-
Thanx!
- Original Message -
From: "Manuel Kissoyan" <[EMAIL PROTECTED]>
To: "Wayne Davison" <[EMAIL PROTECTED]>
Cc: "rsync list"
Sent: Wednesday, January 31, 2007 6:32 PM
Subject: Re: problem with the delete option
Just wondering
Just wondering if this bug will be corrected.
Thank you!
- Original Message -
From: "Manuel Kissoyan" <[EMAIL PROTECTED]>
To: "Wayne Davison" <[EMAIL PROTECTED]>
Cc: "rsync list"
Sent: Saturday, January 27, 2007 2:32 PM
Subject: Re:
2007 2:32 PM
Subject: Re: problem with the delete option
ok, this going more complicated
In the sending side do not exists a directory called "piusfont", in the
receving side yes...
there are no entries with this directory name, no
"delete_in_dir(DIRECTORY)" or "mak
uot;Manuel Kissoyan" <[EMAIL PROTECTED]>
Cc: "rsync list"
Sent: Friday, January 26, 2007 12:36 PM
Subject: Re: problem with the delete option
On Mon, Jan 22, 2007 at 08:18:52PM -0300, Manuel Kissoyan wrote:
ok, i did add the -vv and it simply not running any delete command
On Mon, Jan 22, 2007 at 08:18:52PM -0300, Manuel Kissoyan wrote:
> ok, i did add the -vv and it simply not running any delete command, the
> only thing close to that is lines like this:
You need a third -v to see mentions of where rsync is deleting. It will
say "delete_in_dir(DIRECTORY)" for eve
uary 22, 2007 8:18 PM
Subject: Re: problem with the delete option
Thanx Matt,
ok, i did add the -vv and it simply not running any delete command, the
only thing close to that is lines like this:
removing duplicate name
usr/local/cpanel/3rdparty/mailman/Mailman/Bouncer.py from file list
(9386
there in the
sending side.
any idea?
- Original Message -
From: "Matt McCutchen" <[EMAIL PROTECTED]>
To: "Manuel Kissoyan" <[EMAIL PROTECTED]>
Cc: "rsync list"
Sent: Saturday, January 20, 2007 9:33 PM
Subject: Re: problem with the delete opt
uel Kissoyan" <[EMAIL PROTECTED]>
Cc: "rsync list"
Sent: Saturday, January 20, 2007 9:33 PM
Subject: Re: problem with the delete option
On 1/20/07, Manuel Kissoyan <[EMAIL PROTECTED]> wrote:
im trying to backup a cpanel server and made a list in the file with the
direct
On 1/20/07, Manuel Kissoyan <[EMAIL PROTECTED]> wrote:
im trying to backup a cpanel server and made a list in the file with the
directories and files to be backed up and also another file with the
excluded dir/file list.
For some reason when an account is deleted from the server then when rsync
i
hi guys,
im trying to backup a cpanel server and made a list in the file with the
directories and files to be backed up and also another file with the
excluded dir/file list.
For some reason when an account is deleted from the server then when rsync
is backing it up is not removing this accoun
On 1/13/07, Tino Schöllhorn <[EMAIL PROTECTED]> wrote:
It would really help if the documentation would be updated and point out
that --delete works only with the -r option. As I can see there are a
lot of people out there who have problems with that option.
Version 2.6.7 and later of the man pa
Hi,
thanks. Now it works. Of course you are right: Synching worked without
-r als long as I specified the files explicitly.
It would really help if the documentation would be updated and point out
that --delete works only with the -r option. As I can see there are a
lot of people out there w
On 1/13/07, Tino Schöllhorn <[EMAIL PROTECTED]> wrote:
rsync -v --delete --times /var/subversion/ myhost.de:backup/subversion/
The backup works fine - but file which are deleted from the source
*aren't* deleted from the destination as I expected.
You need the -r option (--recursive) to make rs
Hi,
I have a problem with the --delete option.
In our backup-process we run:
rsync -v --delete --times /var/subversion/ myhost.de:backup/subversion/
The backup works fine - but file which are deleted from the source
*aren't* deleted from the destination as I expected.
I tried a l
Manuel Kissoyan wrote:
> rsync -vrplogDtzH --stats --delete-during --partial --timeout=500
> --exclude-from=/root/rsyncexcludedfiles
> --files-from=/root/rsyncincludedfiles..
>
> and the includedfiles list have some wildecards but the files that has not
> been deleted wasnt in the wildcar
Sorry...i forgot the detailshere is the info...
im running:
rsync -vrplogDtzH --stats --delete-during --partial --timeout=500 --exclude-from=/root/rsyncexcludedfiles
--files-from=/root/rsyncincludedfiles..
and the includedfiles list have some wildecards but the files that has not
On Saturday 25 November 2006 19:14, Manuel Kissoyan wrote:
> Hi Wayne,
rsync@lists.samba.org != wayned
(At least I hope so, for wayned's sanity.
> im using version 2.6.8 protocol version 29 and looks like
> the --delete-during parameter is not working correctly, if in the sender
> side server
On Sat, Nov 25, 2006 at 02:14:39PM -0300, Manuel Kissoyan wrote:
> if in the sender side server i delete a directory with files and
> directories into it after run rsync is not removing that
> directory/files on the receiver side.
I can only guess here since you don't supply any details of your ru
Hi Wayne,
im using version 2.6.8 protocol version 29 and looks like
the --delete-during parameter is not working correctly, if in the sender
side server i delete a directory with files and directories into it after
run rsync is not removing that directory/files on the receiver side.
Any id
On Tue, Sep 12, 2006 at 02:05:10PM -0500, Evan Harris wrote:
> So, I agree with the parent message that either --remove-sent-files should
> delete the files immediately after they are successfully sent, or a new
> option should be added (--move maybe?) that does it that way.
It can never do it i
I've looked back through my mailing list archives, and seen a few messages
touching on the same things I wanted to mention, but I figured it might be
better to recap, since most of them were sent more than a year ago.
I have recently started using the --remove-sent-files option, and have
not
On Sat, Sep 09, 2006 at 12:22:57PM -0700, Wayne Davison wrote:
> This is a different bug that was recently fixed: using --relative with
> a root (/) filesystem and --delete was also failing to delete. The
> latest CVS source and recent nightly tar files have this fixed. Here's
> the bug (which h
On Sat, Sep 09, 2006 at 09:00:10PM +0200, Mario 'BitKoenig' Holbe wrote:
> [EMAIL PROTECTED]:~# rsync -HSaxvn --delete --relative /
> /mnt/rsnapshot/daily.0/darkside/root | grep -c ^deleting
> 0
This is a different bug that was recently fixed: using --relative with
a root (/) filesystem and --de
Hi,
Wayne Davison <[EMAIL PROTECTED]> wrote:
> OK, I had a free moment to work up a fix, and here it is. It was
> pretty simple.
I'm sorry to wake this up again, but it seems not to be so simple to
fix at all :)
I've stumbled over this while noticing that the rsnapshot backup of my
root-filesyst
> On Sat, Dec 17, 2005 at 03:55:27PM -0600, scott wrote:
> > rsync --archive -e '/usr/bin/ssh -p 22' --verbose
> > \ --include-from=/root/my-backupfilter --recursive
> > \ --delete --existing / [EMAIL PROTECTED]:/home/backupdir
> >
> > which is close, but still updates files
>
> You need to also ad
On Sat, Dec 17, 2005 at 03:55:27PM -0600, scott wrote:
> rsync --archive -e '/usr/bin/ssh -p 22' --verbose
> \ --include-from=/root/my-backupfilter --recursive
> \ --delete --existing / [EMAIL PROTECTED]:/home/backupdir
>
> which is close, but still updates files
You need to also add --ignore-exi
I use files-from and want to have rsync connect to my backup server and ONLY
delete the files that are no longer on the source server. If the file which
is in my files-from filter list has changed, i do not wan tit updated. Bu
if the file on the source server has been deleted, I want rsync to (on
OK, I had a free moment to work up a fix, and here it is. It was
pretty simple.
..wayne..
--- flist.c 30 Mar 2005 17:31:35 - 1.291
+++ flist.c 27 Apr 2005 19:14:17 -
@@ -655,6 +655,9 @@ static struct file_struct *receive_file_
if (flags & XMIT_TOP_DIR) {
On Wed, Apr 27, 2005 at 12:57:51PM -0400, Lenny wrote:
> rsync -a --delete --numeric-ids --relative --delete-excluded -v src/ dest/
The problem is caused by the source dir being "src/" instead of "src"
when --relative is specified (this causes a problem internally because
the starting directory is
o this by placing files 'a','b',
and 'c' just under the 'src' directory (without the '1' subdirectory),
the --delete option will work correctly.
Any thoughts?
Thanks,
Lenny
--
To unsubscribe or change options: https://lists.samba.org/mail
[It appears I missed this message back in February -- ouch.]
On Sat, Feb 19, 2005 at 08:53:32PM -0500, Andrew Gideon wrote:
> FWIW: In the manner I can envision using this, it makes more sense to
> delete the source as long as the destination file is valid, whether
> that file moved during this ex
Wayne Davison wrote:
> There is a patch in the "patches" dir called delete-sent-files.diff that
> probably does what you want. It deletes any files that got successfully
> transferred, but does not delete files that were already up-to-date, nor
> does it delete things like directories, symlinks,
On Tue, Feb 15, 2005 at 10:20:56AM +0100, ?yvin S?mme wrote:
> 3) How will it work with the '-n' option?
With -n, rsync will tell you about the files that it would transfer (as
normal) and no files would be deleted. It would also skip the "sender
removed X" messages that are output for -vv when t
I have not yet tried your patch but:
1) The patch you describe sounds ideal to me
2) I hope you will include it in the next main release
3) How will it work with the '-n' option?
Thanks
Wayne Davison wrote:
On Mon, Feb 14, 2005 at 02:03:56PM +0100, ?yvin S?mme wrote:
I would like an option that del
On Mon, Feb 14, 2005 at 02:03:56PM +0100, ?yvin S?mme wrote:
> I would like an option that deletes the source file(s) *if*
> successfully transferred (i.e. delete source upon completion).
> Maybe an option like '--delete-source'.
There is a patch in the "patches" dir called delete-sent-files.diff
Hi.
I've been a proud user of rsync in 9 years!
I have always found an option with rsync that offers exactly the
functionality I want. But today my search was negative: I would
like an option that deletes the source file(s) *if* successfully
transferred (i.e. delete source upon completion). Maybe a
x27;ve tried setting truss -p again both the server side, and
receiver, and nothing seems to be happening on the server, and periodic
'select()'s happen on the receiver ...
On Wed, 15 Dec 2004, Wayne Davison wrote:
On Thu, Dec 09, 2004 at 04:02:05PM -0500, Tony Shum wrote:
When I use --d
On Thu, Dec 09, 2004 at 04:02:05PM -0500, Tony Shum wrote:
> When I use --delete option, it seems to hang for over 8 hours on 4.5Gb
> of total data.
The --delete option causes rsync to read the local hierarchy, and
construct a list of files to compare with the remote file list. If it
is h
On Thu, 9 Dec 2004, Tony Shum wrote:
> When I use --delete option, it seems to hang for over 8 hours on 4.5Gb
> of total data. But when I remove the --delete option, I can see it
> starts rsyncing. Has anyone encounter this problem before?
What type of filesystem is your data on (
Hi,
When I use --delete option, it seems to hang for over 8 hours on 4.5Gb
of total data. But when I remove the --delete option, I can see it
starts rsyncing. Has anyone encounter this problem before?
--Tony Shum
--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo
thanks, that's what I wanted to hear (:
On Sat, 30 Oct 2004 12:22:16 +0200, Paul Slootman <[EMAIL PROTECTED]> wrote:
> On Fri 29 Oct 2004, [EMAIL PROTECTED] wrote:
>
>
>
> > I'm a bit paranoid, but had to ask-- How safe is it to use the --delete option?
>
On Fri 29 Oct 2004, [EMAIL PROTECTED] wrote:
> I'm a bit paranoid, but had to ask-- How safe is it to use the --delete option?
>
> ie, when using it locally (or via a mounted network volume), will I
> *ever* have to worry about my actual source files being delete
> mistake
I'm a bit paranoid, but had to ask-- How safe is it to use the --delete option?
ie, when using it locally (or via a mounted network volume), will I
*ever* have to worry about my actual source files being delete
mistakenly (instead of dest. files)?
thanks!
--
To unsubscribe or change op
On Mon, Oct 18, 2004 at 01:13:56PM -0700, Laurens wrote:
> It deletes 2 files while --max-delete=1 was specified.
> I think it has something to do with deletion_count in delete_files
> (receiver.c).
Yes, the ">" should really be ">=" (a simple off-by-one error). The
line should look like this whe
Hi,
When using --max-delete=NUM, NUM + 1 files get deleted.
Test it by doing this:
# mkdir src
# mkdir dest
# cd src
# touch 1 2 3 4 5
# cd ..
# rsync -avu src/ dest
# cd src
# rm 1 2
# cd ..
( Here i try to sync src and dest, but only delete one file from dest
at the time. This would prevent an
Sorry for the mistake. Should be CYGWIN=nontsec.
- Original Message -
From: "Tevfik Karagülle" <[EMAIL PROTECTED]>
To: "Hergaarden, Marcel" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 11:48 AM
Subject: Re: Problem on X
- Original Message -
From: "Hergaarden, Marcel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 11:39 AM
Subject: Problem on XP with --delete option
> Hi,
>
> I'm experiencing a problem on rsync with the --delete option.
>
>
Hi,
I'm experiencing a problem on rsync with the --delete option.
Situation:
Server = Mandrake Linux 9.2 running rsync daemon
Client = Windows XP workstation running cygwin + rsync2.5.1 combined with ssh.
All this implemented conform the website of Robert Scholten
ittwoch, 29. Oktober 2003 13:33
> An: [EMAIL PROTECTED]
> Betreff: trying to figure out how the --delete option works.
>
>
> I use this comand to back up my entirely drive to a second drive. Because
> the second drive is smaller I have excluded my movies directory. I also
> excl
I use -a
from the man:
âa, ââarchive archive mode, equivalent to ârlptgoD
u se, the -r for --recursive is there
I also use -v
-v as for --verbose
so I have that covered.
I have now experiemented with some tmp-files in my homedir and it works
flawlessly.
rsync -av --exclude "/**/movi
> "This option has no effect if directory recursion is
> not
> selected."
> (I really dont know what this means. Perhaps this is where
> my
> comand fails?)
from the man:
--recursive
This tells rsync to copy directories recursively
Thank you for your answer, but i'ts not about the excluded files. Sorry if I
was unclear about that.
This is what the man rsync says about the delete option:
"--delete This tells rsync to delete any files on the receiving side that
arenÂt on the sen
Add this:
--delete-excluded
See the manual.
Rainer
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von
Mandrake Pe
Gesendet: Mittwoch, 29. Oktober 2003 13:33
An: [EMAIL PROTECTED]
Betreff: trying to figure out how the --delete option works.
I use
I use this comand to back up my entirely drive to a second drive. Because the
second drive is smaller I have excluded my movies directory. I also excluded
the /mnt/ diectory, becous I dont want to back up the backup. This part works
just fine.
It's the --delete option I cant get to wo
would output
something.
Thanks
Xavier
p.s. I join my test on a seperate text file.
-- Original Message ---
From: Wayne Davison <[EMAIL PROTECTED]>
To: Xavier <[EMAIL PROTECTED]>
Sent: Thu, 3 Jul 2003 10:11:33 -0700
Subject: Re: rsync server and --delete option
> On
On Thu, Jul 03, 2003 at 03:23:08PM +0100, Xavier wrote:
> rsync -nPru --delete /temp/* serverA::wwwroot/temp/
>
> the delete option is not working
That's because you used a wildcard. The --delete option only affects
directories, and you send a list of files. The above is equ
/temp/* serverA::wwwroot/temp/
the delete option is not working (the files that are not on the sending server
are not deleted) and I get no error messages, even with -vvv or when I set
--ignore-errors --force options...
Is this supposed to work at all ? Is it may be a permission problem ?
Thanks
On Sun, Mar 02, 2003 at 11:30:16PM -0800, Mason Lee wrote:
> Please could someone tell me if it is possible to specify in a single
> rsync command that the --delete option should apply to all files except
> those matching a certain pattern? I want to do a -a archive, except
>
Please could someone tell me if it is possible to specify in a single
rsync command that the --delete option should apply to all files except
those matching a certain pattern? I want to do a -a archive, except
that a few directories should not have --delete applied. Do I need to
use two
On Fri, Nov 01, 2002 at 11:36:56AM -0500, Chaturvedi.Rajesh wrote:
> Hello,
>
> Any help on the following issue will be appreciated.
>
> How do I delete files or directories in my first level of directory that is
> specified as host. Here is an example :
>
> rsync -avz --delete ${SOURCE_HOST
I had a similar problem once. Try this instead:
rsync -avz --delete ${SOURCE_HOST}:/mlinkfam/extract/sccs/pa/.
/mlinkfam/extract/sccs/pa
The only change was "*" to ".".
On Fri, 01 Nov 2002 11:36:56 -0500 "Chaturvedi.Rajesh" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> Any help on the following
Hello,
Any help on the following issue will be appreciated.
How do I delete files or directories in my first level of directory that is
specified as host. Here is an example :
rsync -avz --delete ${SOURCE_HOST}:/mlinkfam/extract/sccs/pa/*
/mlinkfam/extract/sccs/pa
Giving above command I fi
Package: rsync
Version: all
Severity: wishlist
Tags: +upstream +patch
thanks
Hello
I want to notice you of a very annoying behavour regarding the --delete
option. Although people are aware of the difference between writing
host:/directory and
host:/directory/
It is not
thought about not using the
"--delete"option and instead, gather a list of files to be deleted from
our internal publishing/staging system and remove them separately.
Once again, thank you much for you comments and suggestions. "Rsync" is
the best replicating application I ha
nt pack(,
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970),
".\n" '
"There are some who call me Tim?"
Andy Lam <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
03/11/2002 10:43 AM
To: [EMAIL PROTECTED]
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Su
elete option in rsync, all the temporary files at the
destination B will be deleted. In contrast, if I don't use the --delete
option, the destination's temporary files will be intact, but any files
removed from the source, A will not be deleted at the destionation B.
It seems to me that the
above requirement, I took out the --delete option, but
the problem was, if a file was to be removed from the contents on A, it
doesn't remove from B as well.
--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
/ user@manchine2:/Dir2
This is my first attempt at using the delete option, Can anyone give me some
examples of how to properly use the --delete option with the rsync command.
86 matches
Mail list logo