Exclude symbolic links from rsync without excessive notification
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to exclude symbolic links from an rsync
, but --no-links
floods my terminal with skipping non-regular file
for every link, taking focus from other important information from rsync
.
How can I exclude links without being pestered about each individual occurrence? The following are not acceptable solutions:
- Using the
-q
option, as this suppresses all output fromrsync
- Filtering the message with
grep
- Meticulously altering my include file around the links are not good options.
If this is is impossible (as it may seem): Why is skipping non-regular files considered so important that the user is explicitly warned about every single one of them even when he has specified he wants to exclude them? I'm tempted to take this up as an issue with the developer.
rsync
add a comment |Â
up vote
0
down vote
favorite
I want to exclude symbolic links from an rsync
, but --no-links
floods my terminal with skipping non-regular file
for every link, taking focus from other important information from rsync
.
How can I exclude links without being pestered about each individual occurrence? The following are not acceptable solutions:
- Using the
-q
option, as this suppresses all output fromrsync
- Filtering the message with
grep
- Meticulously altering my include file around the links are not good options.
If this is is impossible (as it may seem): Why is skipping non-regular files considered so important that the user is explicitly warned about every single one of them even when he has specified he wants to exclude them? I'm tempted to take this up as an issue with the developer.
rsync
1
Possible duplicate of rsync "skipping non-regular file" message when not copying links
â Marco
May 28 at 8:36
@Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
â forthrin
May 28 at 8:50
Why is it not an option to filter those unwanted messages away?
â ilkkachu
May 29 at 20:24
@ilkkachu: Just seems very hacky...
â forthrin
May 30 at 6:43
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to exclude symbolic links from an rsync
, but --no-links
floods my terminal with skipping non-regular file
for every link, taking focus from other important information from rsync
.
How can I exclude links without being pestered about each individual occurrence? The following are not acceptable solutions:
- Using the
-q
option, as this suppresses all output fromrsync
- Filtering the message with
grep
- Meticulously altering my include file around the links are not good options.
If this is is impossible (as it may seem): Why is skipping non-regular files considered so important that the user is explicitly warned about every single one of them even when he has specified he wants to exclude them? I'm tempted to take this up as an issue with the developer.
rsync
I want to exclude symbolic links from an rsync
, but --no-links
floods my terminal with skipping non-regular file
for every link, taking focus from other important information from rsync
.
How can I exclude links without being pestered about each individual occurrence? The following are not acceptable solutions:
- Using the
-q
option, as this suppresses all output fromrsync
- Filtering the message with
grep
- Meticulously altering my include file around the links are not good options.
If this is is impossible (as it may seem): Why is skipping non-regular files considered so important that the user is explicitly warned about every single one of them even when he has specified he wants to exclude them? I'm tempted to take this up as an issue with the developer.
rsync
edited May 28 at 8:49
asked May 28 at 8:20
forthrin
800821
800821
1
Possible duplicate of rsync "skipping non-regular file" message when not copying links
â Marco
May 28 at 8:36
@Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
â forthrin
May 28 at 8:50
Why is it not an option to filter those unwanted messages away?
â ilkkachu
May 29 at 20:24
@ilkkachu: Just seems very hacky...
â forthrin
May 30 at 6:43
add a comment |Â
1
Possible duplicate of rsync "skipping non-regular file" message when not copying links
â Marco
May 28 at 8:36
@Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
â forthrin
May 28 at 8:50
Why is it not an option to filter those unwanted messages away?
â ilkkachu
May 29 at 20:24
@ilkkachu: Just seems very hacky...
â forthrin
May 30 at 6:43
1
1
Possible duplicate of rsync "skipping non-regular file" message when not copying links
â Marco
May 28 at 8:36
Possible duplicate of rsync "skipping non-regular file" message when not copying links
â Marco
May 28 at 8:36
@Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
â forthrin
May 28 at 8:50
@Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
â forthrin
May 28 at 8:50
Why is it not an option to filter those unwanted messages away?
â ilkkachu
May 29 at 20:24
Why is it not an option to filter those unwanted messages away?
â ilkkachu
May 29 at 20:24
@ilkkachu: Just seems very hacky...
â forthrin
May 30 at 6:43
@ilkkachu: Just seems very hacky...
â forthrin
May 30 at 6:43
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
You can use --files-from
to define the list of files to sync, and use find
to exclude symlinks:
rsync --files-from=<(find . ! -type l -print) . TARGET/
Yes, this works, but then I have to run a separatersync
for these files only. It would have been nice to include it with the mainrsync
backup.
â forthrin
May 28 at 20:18
@forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
â nohillside
May 29 at 4:16
add a comment |Â
up vote
1
down vote
If you don't want to see messages about any skipped files, you can use --info=skip0
if your version of rsync
is not too old.
If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync
's output control options don't seem to be fine-grained enough for that.
See rsync --info=help
for a list of things you can adjust in rsync
output.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
You can use --files-from
to define the list of files to sync, and use find
to exclude symlinks:
rsync --files-from=<(find . ! -type l -print) . TARGET/
Yes, this works, but then I have to run a separatersync
for these files only. It would have been nice to include it with the mainrsync
backup.
â forthrin
May 28 at 20:18
@forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
â nohillside
May 29 at 4:16
add a comment |Â
up vote
1
down vote
You can use --files-from
to define the list of files to sync, and use find
to exclude symlinks:
rsync --files-from=<(find . ! -type l -print) . TARGET/
Yes, this works, but then I have to run a separatersync
for these files only. It would have been nice to include it with the mainrsync
backup.
â forthrin
May 28 at 20:18
@forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
â nohillside
May 29 at 4:16
add a comment |Â
up vote
1
down vote
up vote
1
down vote
You can use --files-from
to define the list of files to sync, and use find
to exclude symlinks:
rsync --files-from=<(find . ! -type l -print) . TARGET/
You can use --files-from
to define the list of files to sync, and use find
to exclude symlinks:
rsync --files-from=<(find . ! -type l -print) . TARGET/
answered May 28 at 17:07
nohillside
1,858616
1,858616
Yes, this works, but then I have to run a separatersync
for these files only. It would have been nice to include it with the mainrsync
backup.
â forthrin
May 28 at 20:18
@forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
â nohillside
May 29 at 4:16
add a comment |Â
Yes, this works, but then I have to run a separatersync
for these files only. It would have been nice to include it with the mainrsync
backup.
â forthrin
May 28 at 20:18
@forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
â nohillside
May 29 at 4:16
Yes, this works, but then I have to run a separate
rsync
for these files only. It would have been nice to include it with the main rsync
backup.â forthrin
May 28 at 20:18
Yes, this works, but then I have to run a separate
rsync
for these files only. It would have been nice to include it with the main rsync
backup.â forthrin
May 28 at 20:18
@forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
â nohillside
May 29 at 4:16
@forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
â nohillside
May 29 at 4:16
add a comment |Â
up vote
1
down vote
If you don't want to see messages about any skipped files, you can use --info=skip0
if your version of rsync
is not too old.
If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync
's output control options don't seem to be fine-grained enough for that.
See rsync --info=help
for a list of things you can adjust in rsync
output.
add a comment |Â
up vote
1
down vote
If you don't want to see messages about any skipped files, you can use --info=skip0
if your version of rsync
is not too old.
If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync
's output control options don't seem to be fine-grained enough for that.
See rsync --info=help
for a list of things you can adjust in rsync
output.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
If you don't want to see messages about any skipped files, you can use --info=skip0
if your version of rsync
is not too old.
If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync
's output control options don't seem to be fine-grained enough for that.
See rsync --info=help
for a list of things you can adjust in rsync
output.
If you don't want to see messages about any skipped files, you can use --info=skip0
if your version of rsync
is not too old.
If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync
's output control options don't seem to be fine-grained enough for that.
See rsync --info=help
for a list of things you can adjust in rsync
output.
answered May 29 at 8:02
telcoM
10.1k11032
10.1k11032
add a comment |Â
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%2f446440%2fexclude-symbolic-links-from-rsync-without-excessive-notification%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
1
Possible duplicate of rsync "skipping non-regular file" message when not copying links
â Marco
May 28 at 8:36
@Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
â forthrin
May 28 at 8:50
Why is it not an option to filter those unwanted messages away?
â ilkkachu
May 29 at 20:24
@ilkkachu: Just seems very hacky...
â forthrin
May 30 at 6:43