Skip to main content
23 events
when toggle format what by license comment
S May 14, 2024 at 21:37 history edited Stephen Kitt CC BY-SA 4.0
Formatting.
S May 14, 2024 at 21:37 history suggested Chris Withers CC BY-SA 4.0
correct -a description
May 14, 2024 at 18:09 review Suggested edits
S May 14, 2024 at 21:37
Jan 5, 2024 at 19:56 comment added addohm 'puts' is probably not the correct phrasing as the source folder is untouched. Just my $0.02.
Aug 18, 2023 at 20:00 history edited Matthias Braun CC BY-SA 4.0
spelling
Apr 3, 2021 at 0:09 comment added eugene Important note in response to Luke's comment regarding trailing slashes - from the manpage: "A trailing slash on the source changes this behavior to avoid creating an additional directory level at the destination. You can think of a trailing / on a source as meaning "copy the contents of this directory" as opposed to "copy the directory by name", but in both cases the attributes of the containing directory are transferred to the containing directory on the destination." - Bottom line, add a trailing slash to the source if you don't want a subdirectory created on the destination
S Jun 26, 2019 at 6:24 history edited muru CC BY-SA 4.0
added info about -u // added link to official man page // removed redundant information
S Jun 26, 2019 at 6:24 history suggested Honest Abe CC BY-SA 4.0
added info about -u // added link to official man page // removed redundant information
Jun 26, 2019 at 5:42 review Suggested edits
S Jun 26, 2019 at 6:24
Feb 21, 2019 at 20:25 comment added k_o_ If -a (preserve all file attributes) is not needed, e.g. because of copying from a Linux to a Windows file system, you might need the -r switch, i.e. pass rsync -rvu. Otherwise no sub directories are copied and you will see the unfriendly and confusing error message "skipping directory ."
S Jan 11, 2019 at 11:10 history suggested andialles CC BY-SA 4.0
added exact solution to OP's question, clarified what each solution does.
Jan 11, 2019 at 9:16 review Suggested edits
S Jan 11, 2019 at 11:10
Sep 19, 2018 at 3:24 comment added Luke I've tried the command but it create a sub-dir /home/user/B/A instead of overwrite A's content to B's content. Could you help me to have a look on it?
Jul 6, 2018 at 15:49 history edited TuxForLife CC BY-SA 4.0
deleted 32 characters in body
Jul 6, 2018 at 15:48 comment added TuxForLife @GerritCap, I made an edit, thanks for your valuable input
Mar 29, 2017 at 8:57 review Suggested edits
Mar 29, 2017 at 9:24
Mar 29, 2017 at 8:51 comment added GerritCap Rsync is primarly meant to copy files between different computers, as explained here it can serve the purpose to sync directories as well. So the -z option is interesting to reduce network traffic and thus enhance the performance of an rsync between 2 computers: ( read data from disk -> compress) ===network===> (uncompress->write to disk) Using -z to sync 2 directories on the same host is a bit silly and waste of cpu cycles as you would get (read data from disk -> compress -> uncompress -> write to disk)
Jul 11, 2016 at 5:43 comment added TuxForLife Hi SonicARG, I totally forgot to get back to this and put the explanation, thanks submitting the explanation, I put yours in the answer, hope you don't mind.
Jul 11, 2016 at 5:41 history edited TuxForLife CC BY-SA 3.0
added 341 characters in body
Jul 9, 2016 at 19:25 comment added SonicARG rsync: run rsync app, -a: do the sync preserving all filesystem attributes, -v: run verbosely, -z: compress the data during the sync (transport the data in compressed mode), --delete: delete the files in target folder that do not exist in the source, /home/user/A: source folder, /home/user/B: target folder
Jun 21, 2015 at 12:48 history edited slm CC BY-SA 3.0
added 4 characters in body
May 18, 2015 at 3:29 vote accept CommunityBot
May 16, 2015 at 22:04 history answered TuxForLife CC BY-SA 3.0