Sync

From Traxel Wiki
Revision as of 19:48, 25 September 2023 by RobertBushman (talk | contribs) (Created page with "Category:Hacking = Rsync = == From there to here == <pre> rsync -avz --size-only --delete user@remote_host:/path/to/remote/directory/ /path/to/local/directory/ </pre> = AWS S3 Sync = == From here to there, with delete == <pre> aws s3 sync /path/to/remote/directory/ s3://your-s3-bucket-name/path/in/bucket/ --delete --size-only </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Rsync

From there to here

rsync -avz --size-only --delete user@remote_host:/path/to/remote/directory/ /path/to/local/directory/

AWS S3 Sync

From here to there, with delete

aws s3 sync /path/to/remote/directory/ s3://your-s3-bucket-name/path/in/bucket/ --delete --size-only