Bash - Sync Files to Folder

# Any difference in files from the source are copied/replaced in the destination folder # -t, --times preserve modification times # -r, --recursive recurse into directories rsync -tr "/source/of/files/*" "/destination/directory/" # synced folder will be a subfolder of destination directory rsync -tr "/source/of/subfolder" "/destination/directory/" # result: /destination/directory/subfolder

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.