Skip to content

Instantly share code, notes, and snippets.

@rwenz3l
Created August 24, 2016 08:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwenz3l/312d6d1d2cc3ce70762c81552a425641 to your computer and use it in GitHub Desktop.
Save rwenz3l/312d6d1d2cc3ce70762c81552a425641 to your computer and use it in GitHub Desktop.
Upload Script for Amazon Cloud Drive
# UPLOAD SCRIPT
echo "--> Pause All Torrents/Stop Deluge"
# deluge-console "pause *;quit"
systemctl stop deluged
echo "--> Stop PlexServer"
systemctl stop plexmediaserver
echo "--> Unmount EncFS and ACD"
fusermount -z -u /share/acd-dec/
fusermount -z -u /share/acd-raw/
echo "--> Clear ACD Cache and Sync"
acdcli cc
acdcli sync
echo "--> Start Upload (-x 10)"
# Old Version
# acdcli upload -x 8 /share/loc-enc/* /plexcrypt/
# New Version
# ACD_CLI_CACHE_PATH="~/acd_ul_cache.db" acdcli upload -x 10 --overwrite --remove-source-files /share/loc-enc/* /plexcrypt/
acd_cli upload -x 10 --overwrite /share/loc-enc/* /plexcrypt/
echo "--> Done!"
echo "--> Mount ACD"
acdcli mount /share/acd-raw/
echo "--> Mount EncFS"
ENCFS6_CONFIG='/opt/encfs/encfs.xml' encfs /share/acd-raw/plexcrypt /share/acd-dec --stdinpass < ~/.enc
echo "Start PlexServer"
systemctl start plexmediaserver
echo "--> Resume All Torrents/Start deluge"
# deluge-console "resume *; quit"
systemctl start deluged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment