Sync: Difference between revisions

From Traxel Wiki
Jump to navigation Jump to search
Line 9: Line 9:
cd /opt/cypherpunk/data/reddit/json
cd /opt/cypherpunk/data/reddit/json
find discussion -name '2023-09' -type d | awk '{print "rsync -avz --size-only --delete www.iterativechaos.com:/opt/cypherpunk/data/reddit/json/"$1"/ ./"$1"/"}'
find discussion -name '2023-09' -type d | awk '{print "rsync -avz --size-only --delete www.iterativechaos.com:/opt/cypherpunk/data/reddit/json/"$1"/ ./"$1"/"}'
</pre>
== Fix Timestamps ==
<pre>
rsync -avz --times --omit-dir-times --no-perms --no-owner --no-group --size-only --existing movie/ brickmedia:/media/bob/port/media/video/movie/
</pre>
</pre>



Revision as of 01:42, 21 August 2025

Rsync

From there to here

rsync -avz --size-only --delete user@remote_host:/path/to/remote/directory/ /path/to/local/directory/
cd /opt/cypherpunk/data/reddit/json
find discussion -name '2023-09' -type d | awk '{print "rsync -avz --size-only --delete www.iterativechaos.com:/opt/cypherpunk/data/reddit/json/"$1"/ ./"$1"/"}'

Fix Timestamps

rsync -avz --times --omit-dir-times --no-perms --no-owner --no-group --size-only --existing movie/ brickmedia:/media/bob/port/media/video/movie/

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

Backup Drives

rsync -navz --size-only --delete /media/bob/Seagate\ Backup\ Plus\ Drive/Media/ /media/bob/Seagate\ Portable\ Drive/Media/

Remove -n for live fire.