1
0
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:
Matthias Kretschmann 2016-11-15 22:28:53 +01:00
parent a3d657f116
commit f7218f1511
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC

View File

@ -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