How to make rsync display only files being copied, not all the folders which are scanned?2019 Community Moderator Electionview stdout for another ptsrsync + renaming the copied filesHow to stop rsync from replacing every file whether or not it has been changed?sudo rsync -a does not preserve mtimehow to get rsync to make hard links to the source dir, while also backing up changed files?rsync --compare-dest is being ignoredrsync keeps stopping on one directory with no errorsHow to check which files got merely hardlinked or actually copied by `rsync`?Rsync shows files being copied, but the destination directory doesn't have the filesBash scripting and rsync: how to include just some folders and subfolders and what happends if I use ../ as path with --delete
Did US corporations pay demonstrators in the German demonstrations against article 13?
Why does this part of the Space Shuttle launch pad seem to be floating in air?
Is it okay / does it make sense for another player to join a running game of Munchkin?
Why isn't KTEX's runway designation 10/28 instead of 9/27?
Resetting two CD4017 counters simultaneously, only one resets
In Star Trek IV, why did the Bounty go back to a time when whales were already rare?
What will be the benefits of Brexit?
Are Warlocks Arcane or Divine?
Can I Retrieve Email Addresses from BCC?
Latex for-and in equation
Organic chemistry Iodoform Reaction
Simple image editor tool to draw a simple box/rectangle in an existing image
How to check participants in at events?
Why are on-board computers allowed to change controls without notifying the pilots?
How can I successfully establish a nationwide combat training program for a large country?
Can a Gentile theist be saved?
Giant Toughroad SLR 2 for 200 miles in two days, will it make it?
Lifted its hind leg on or lifted its hind leg towards?
What was required to accept "troll"?
Superhero words!
Is it legal to discriminate due to the medicine used to treat a medical condition?
What should I use for Mishna study?
Invariance of results when scaling explanatory variables in logistic regression, is there a proof?
Can the electrostatic force be infinite in magnitude?
How to make rsync display only files being copied, not all the folders which are scanned?
2019 Community Moderator Electionview stdout for another ptsrsync + renaming the copied filesHow to stop rsync from replacing every file whether or not it has been changed?sudo rsync -a does not preserve mtimehow to get rsync to make hard links to the source dir, while also backing up changed files?rsync --compare-dest is being ignoredrsync keeps stopping on one directory with no errorsHow to check which files got merely hardlinked or actually copied by `rsync`?Rsync shows files being copied, but the destination directory doesn't have the filesBash scripting and rsync: how to include just some folders and subfolders and what happends if I use ../ as path with --delete
My weekly backup script contains a bunch of bash statements like these:
rsync -va /source_path/ /destination_path/
Now, this works great but the -v (verbose) option doesn't behave exactly like I want. What I want is that it should display only the changed files which are being copied, and not each and every folder it scans.
For example, if document1 and document2 folders are unchanged, but a file is changed in document3, then the display will be as follows:
document1/
document2/
document3/
document3/foo.txt
If I omit the -v option altogether, its totally silent and doesn't display anything at all. I want the output display but I'm only interested in the last line (foo.txt) which is the file being copied, not the dozens of folders which rsync scans such as document1, document2, etc.
Is there any way to do it?
rsync
add a comment |
My weekly backup script contains a bunch of bash statements like these:
rsync -va /source_path/ /destination_path/
Now, this works great but the -v (verbose) option doesn't behave exactly like I want. What I want is that it should display only the changed files which are being copied, and not each and every folder it scans.
For example, if document1 and document2 folders are unchanged, but a file is changed in document3, then the display will be as follows:
document1/
document2/
document3/
document3/foo.txt
If I omit the -v option altogether, its totally silent and doesn't display anything at all. I want the output display but I'm only interested in the last line (foo.txt) which is the file being copied, not the dozens of folders which rsync scans such as document1, document2, etc.
Is there any way to do it?
rsync
That's already how rsync works. It's listing those directories because it thinks they're not in sync. Please run with the-iflag and include the output in your question.
– BowlOfRed
8 hours ago
add a comment |
My weekly backup script contains a bunch of bash statements like these:
rsync -va /source_path/ /destination_path/
Now, this works great but the -v (verbose) option doesn't behave exactly like I want. What I want is that it should display only the changed files which are being copied, and not each and every folder it scans.
For example, if document1 and document2 folders are unchanged, but a file is changed in document3, then the display will be as follows:
document1/
document2/
document3/
document3/foo.txt
If I omit the -v option altogether, its totally silent and doesn't display anything at all. I want the output display but I'm only interested in the last line (foo.txt) which is the file being copied, not the dozens of folders which rsync scans such as document1, document2, etc.
Is there any way to do it?
rsync
My weekly backup script contains a bunch of bash statements like these:
rsync -va /source_path/ /destination_path/
Now, this works great but the -v (verbose) option doesn't behave exactly like I want. What I want is that it should display only the changed files which are being copied, and not each and every folder it scans.
For example, if document1 and document2 folders are unchanged, but a file is changed in document3, then the display will be as follows:
document1/
document2/
document3/
document3/foo.txt
If I omit the -v option altogether, its totally silent and doesn't display anything at all. I want the output display but I'm only interested in the last line (foo.txt) which is the file being copied, not the dozens of folders which rsync scans such as document1, document2, etc.
Is there any way to do it?
rsync
rsync
edited yesterday
Jeff Schaller
43.8k1161141
43.8k1161141
asked yesterday
Prahlad YeriPrahlad Yeri
173114
173114
That's already how rsync works. It's listing those directories because it thinks they're not in sync. Please run with the-iflag and include the output in your question.
– BowlOfRed
8 hours ago
add a comment |
That's already how rsync works. It's listing those directories because it thinks they're not in sync. Please run with the-iflag and include the output in your question.
– BowlOfRed
8 hours ago
That's already how rsync works. It's listing those directories because it thinks they're not in sync. Please run with the
-i flag and include the output in your question.– BowlOfRed
8 hours ago
That's already how rsync works. It's listing those directories because it thinks they're not in sync. Please run with the
-i flag and include the output in your question.– BowlOfRed
8 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Kindly use below command tested and it worked fine
command
rsync -avzh sourcepath destinatiopath
Didn't make any difference in my use case. The scanned folders are still displayed when I tested with this command.
– Prahlad Yeri
yesterday
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f508331%2fhow-to-make-rsync-display-only-files-being-copied-not-all-the-folders-which-are%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Kindly use below command tested and it worked fine
command
rsync -avzh sourcepath destinatiopath
Didn't make any difference in my use case. The scanned folders are still displayed when I tested with this command.
– Prahlad Yeri
yesterday
add a comment |
Kindly use below command tested and it worked fine
command
rsync -avzh sourcepath destinatiopath
Didn't make any difference in my use case. The scanned folders are still displayed when I tested with this command.
– Prahlad Yeri
yesterday
add a comment |
Kindly use below command tested and it worked fine
command
rsync -avzh sourcepath destinatiopath
Kindly use below command tested and it worked fine
command
rsync -avzh sourcepath destinatiopath
answered yesterday
Praveen Kumar BSPraveen Kumar BS
1,6821311
1,6821311
Didn't make any difference in my use case. The scanned folders are still displayed when I tested with this command.
– Prahlad Yeri
yesterday
add a comment |
Didn't make any difference in my use case. The scanned folders are still displayed when I tested with this command.
– Prahlad Yeri
yesterday
Didn't make any difference in my use case. The scanned folders are still displayed when I tested with this command.
– Prahlad Yeri
yesterday
Didn't make any difference in my use case. The scanned folders are still displayed when I tested with this command.
– Prahlad Yeri
yesterday
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f508331%2fhow-to-make-rsync-display-only-files-being-copied-not-all-the-folders-which-are%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
That's already how rsync works. It's listing those directories because it thinks they're not in sync. Please run with the
-iflag and include the output in your question.– BowlOfRed
8 hours ago