mirror of
https://github.com/kremalicious/dotfiles.git
synced 2024-11-22 01:37:14 +01:00
tweak cloud sync, backup S3
This commit is contained in:
parent
a3d657f116
commit
f7218f1511
@ -1,17 +1,27 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
#
|
#
|
||||||
# Prerequisite:
|
# Prerequisite:
|
||||||
# rclone configured with remote Amazon Cloud Drive named `amazon`
|
# rclone configured with:
|
||||||
|
# - remote Amazon Cloud Drive named `amazon`
|
||||||
|
# - remote AWS S3 named `s3`
|
||||||
#
|
#
|
||||||
# brew install rclone
|
# brew install rclone
|
||||||
# rclone config
|
# rclone config
|
||||||
|
#
|
||||||
# http://rclone.org/commands/rclone_copy/
|
# http://rclone.org/commands/rclone_copy/
|
||||||
# http://rclone.org/commands/rclone_sync/
|
# http://rclone.org/commands/rclone_sync/
|
||||||
|
|
||||||
# Sync Movies
|
DEFAULTS_AMAZON='--exclude .DS_Store --transfers 2'
|
||||||
rclone sync $MOVIES_DIR amazon:/Movies --update
|
|
||||||
|
|
||||||
# Sync TV Shows
|
# Sync up Movies
|
||||||
rclone sync $TVSHOWS_DIR amazon:/TV\ Shows --update
|
rclone sync $MOVIES_DIR amazon:/Movies $DEFAULTS_AMAZON
|
||||||
|
|
||||||
|
# Sync up TV Shows
|
||||||
|
rclone sync $TVSHOWS_DIR amazon:"/TV Shows" $DEFAULTS_AMAZON
|
||||||
|
|
||||||
|
# Sync up iTunes
|
||||||
|
rclone sync $ITUNES_DIR amazon:/Music/iTunes $DEFAULTS_AMAZON
|
||||||
|
|
||||||
|
# Sync down all S3 buckets
|
||||||
|
rclone sync s3: $S3BACKUP_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user