Want rsync to list copied/deleted files
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I would like rsync to output the list of files which it actually copied, respectively deleted. From the man page, I though the following command will do:
rsync -a --info=backup2,copy2,del2 SOURCEDIR DESTDIR
By looking at DESTDIR afterwards, I see that the files are updated, but I don't get any list of files from rsync. Also tried it with just --info=backup,copy,del
, but to no avail.
Why is it that my approach doesn't work, and how can I do it properly?
rsync
add a comment |Â
up vote
0
down vote
favorite
I would like rsync to output the list of files which it actually copied, respectively deleted. From the man page, I though the following command will do:
rsync -a --info=backup2,copy2,del2 SOURCEDIR DESTDIR
By looking at DESTDIR afterwards, I see that the files are updated, but I don't get any list of files from rsync. Also tried it with just --info=backup,copy,del
, but to no avail.
Why is it that my approach doesn't work, and how can I do it properly?
rsync
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I would like rsync to output the list of files which it actually copied, respectively deleted. From the man page, I though the following command will do:
rsync -a --info=backup2,copy2,del2 SOURCEDIR DESTDIR
By looking at DESTDIR afterwards, I see that the files are updated, but I don't get any list of files from rsync. Also tried it with just --info=backup,copy,del
, but to no avail.
Why is it that my approach doesn't work, and how can I do it properly?
rsync
I would like rsync to output the list of files which it actually copied, respectively deleted. From the man page, I though the following command will do:
rsync -a --info=backup2,copy2,del2 SOURCEDIR DESTDIR
By looking at DESTDIR afterwards, I see that the files are updated, but I don't get any list of files from rsync. Also tried it with just --info=backup,copy,del
, but to no avail.
Why is it that my approach doesn't work, and how can I do it properly?
rsync
asked Jun 22 at 8:08
user1934428
34919
34919
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
Your concept of backup is different to that used by rsync
. In rsync
a backup is a copy on the destination of the original file before it was updated by rsync
. Your command doesn't create any backups, so none will be listed.
Similarly, your concept of copy is different to that used by rsync
. There are no copies made, so none will be listed.
This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete
), so the del
is actually a no-op.
rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'
Thanks for pointing this out. As for the--delete
, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
â user1934428
Jun 22 at 11:56
1
@user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
â roaima
Jun 22 at 15:21
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Your concept of backup is different to that used by rsync
. In rsync
a backup is a copy on the destination of the original file before it was updated by rsync
. Your command doesn't create any backups, so none will be listed.
Similarly, your concept of copy is different to that used by rsync
. There are no copies made, so none will be listed.
This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete
), so the del
is actually a no-op.
rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'
Thanks for pointing this out. As for the--delete
, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
â user1934428
Jun 22 at 11:56
1
@user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
â roaima
Jun 22 at 15:21
add a comment |Â
up vote
1
down vote
Your concept of backup is different to that used by rsync
. In rsync
a backup is a copy on the destination of the original file before it was updated by rsync
. Your command doesn't create any backups, so none will be listed.
Similarly, your concept of copy is different to that used by rsync
. There are no copies made, so none will be listed.
This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete
), so the del
is actually a no-op.
rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'
Thanks for pointing this out. As for the--delete
, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
â user1934428
Jun 22 at 11:56
1
@user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
â roaima
Jun 22 at 15:21
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Your concept of backup is different to that used by rsync
. In rsync
a backup is a copy on the destination of the original file before it was updated by rsync
. Your command doesn't create any backups, so none will be listed.
Similarly, your concept of copy is different to that used by rsync
. There are no copies made, so none will be listed.
This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete
), so the del
is actually a no-op.
rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'
Your concept of backup is different to that used by rsync
. In rsync
a backup is a copy on the destination of the original file before it was updated by rsync
. Your command doesn't create any backups, so none will be listed.
Similarly, your concept of copy is different to that used by rsync
. There are no copies made, so none will be listed.
This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete
), so the del
is actually a no-op.
rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'
answered Jun 22 at 8:34
roaima
39.2k544105
39.2k544105
Thanks for pointing this out. As for the--delete
, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
â user1934428
Jun 22 at 11:56
1
@user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
â roaima
Jun 22 at 15:21
add a comment |Â
Thanks for pointing this out. As for the--delete
, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
â user1934428
Jun 22 at 11:56
1
@user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
â roaima
Jun 22 at 15:21
Thanks for pointing this out. As for the
--delete
, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!â user1934428
Jun 22 at 11:56
Thanks for pointing this out. As for the
--delete
, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!â user1934428
Jun 22 at 11:56
1
1
@user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
â roaima
Jun 22 at 15:21
@user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
â roaima
Jun 22 at 15:21
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451247%2fwant-rsync-to-list-copied-deleted-files%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password