Created
August 24, 2016 08:13
-
-
Save rwenz3l/312d6d1d2cc3ce70762c81552a425641 to your computer and use it in GitHub Desktop.
Upload Script for Amazon Cloud Drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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