mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
uplink mail backup
This commit is contained in:
parent
c39b4538ae
commit
71cbdae52f
5
bin/uplink-delete-bucket
Executable file
5
bin/uplink-delete-bucket
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
bucket="$1"
|
||||||
|
access="$2"
|
||||||
|
uplink ls ${access:+--access "$access"} "sj://$bucket/" | awk '{print $NF}' | xargs -I {} uplink rm ${access:+--access "$access"} "sj://$bucket/{}"
|
@ -17,4 +17,3 @@ brew "cjbassi/ytop/ytop" # Fancy system performance
|
|||||||
brew "nmasur/repo/update-ssh-config" # Update .ssh/config
|
brew "nmasur/repo/update-ssh-config" # Update .ssh/config
|
||||||
brew "kakoune" # Modal editor
|
brew "kakoune" # Modal editor
|
||||||
brew "awslogs" # View AWS log streams
|
brew "awslogs" # View AWS log streams
|
||||||
brew "uplink" # StorJ encrypted storage CLI
|
|
||||||
|
2
mail/backup/rclone.cronjob
Normal file
2
mail/backup/rclone.cronjob
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Run backup of mail folder, requires rclone (and uplink, with proper setup)
|
||||||
|
@hourly root rclone sync /home/noah/Mail/ mail-backup:mail/
|
17
mail/backup/setup_uplink
Executable file
17
mail/backup/setup_uplink
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# First Uplink
|
||||||
|
curl -L https://github.com/storj/storj/releases/latest/download/uplink_linux_amd64.zip -o uplink_linux_amd64.zip
|
||||||
|
if ! (which unzip > /dev/null)
|
||||||
|
then
|
||||||
|
apt install -y unzip
|
||||||
|
fi
|
||||||
|
unzip -o uplink_linux_amd64.zip
|
||||||
|
rm uplink_linux_amd64.zip
|
||||||
|
chmod 755 uplink
|
||||||
|
sudo mv uplink /usr/local/bin/uplink
|
||||||
|
|
||||||
|
# Then rclone
|
||||||
|
curl https://rclone.org/install.sh | sudo bash
|
||||||
|
|
||||||
|
echo "\n\nNow setup rclone with: rclone config\n"
|
Loading…
Reference in New Issue
Block a user