mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 17:20:13 +00:00
hammerspoon and reorganize old files to legacy
This commit is contained in:
2
legacy/mail/backup/rclone.cronjob
Normal file
2
legacy/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
legacy/mail/backup/setup_uplink
Executable file
17
legacy/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"
|
Reference in New Issue
Block a user