mirror of
https://github.com/kremalicious/dotfiles.git
synced 2024-11-25 03:20:09 +01:00
tweak cloud sync, backup S3
This commit is contained in:
parent
a3d657f116
commit
f7218f1511
@ -1,17 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
#
|
||||
# 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
|
||||
# rclone config
|
||||
|
||||
#
|
||||
# http://rclone.org/commands/rclone_copy/
|
||||
# http://rclone.org/commands/rclone_sync/
|
||||
|
||||
# Sync Movies
|
||||
rclone sync $MOVIES_DIR amazon:/Movies --update
|
||||
DEFAULTS_AMAZON='--exclude .DS_Store --transfers 2'
|
||||
|
||||
# Sync TV Shows
|
||||
rclone sync $TVSHOWS_DIR amazon:/TV\ Shows --update
|
||||
# Sync up Movies
|
||||
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