Sync: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
<pre> | <pre> | ||
rsync -avz --size-only --delete user@remote_host:/path/to/remote/directory/ /path/to/local/directory/ | rsync -avz --size-only --delete user@remote_host:/path/to/remote/directory/ /path/to/local/directory/ | ||
7766956 ./discussion | |||
ls discussion/lifeprotips/2023-09/| wc -l | |||
139 | |||
bob@2020gamer:/opt/cypherpunk/data/reddit/json$ du discussion/lifeprotips/2023-09/ | |||
6804 discussion/lifeprotips/2023-09/ | |||
</pre> | </pre> | ||
= AWS S3 Sync = | = AWS S3 Sync = |
Revision as of 22:09, 25 September 2023
Rsync
From there to here
rsync -avz --size-only --delete user@remote_host:/path/to/remote/directory/ /path/to/local/directory/ 7766956 ./discussion ls discussion/lifeprotips/2023-09/| wc -l 139 bob@2020gamer:/opt/cypherpunk/data/reddit/json$ du discussion/lifeprotips/2023-09/ 6804 discussion/lifeprotips/2023-09/
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