-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·27 lines (18 loc) · 1.32 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
cp ./restic_backup.sh /usr/local/bin/restic_backup.sh
chmod +x /usr/local/bin/restic_backup.sh
cp ./restic_cleanup.sh /usr/local/bin/restic_cleanup.sh
chmod +x /usr/local/bin/restic_cleanup.sh
sudo cp ./com.cbergoon.restic_backup_local.plist /Library/LaunchDaemons/com.cbergoon.restic_backup_local.plist
sudo cp ./com.cbergoon.restic_backup_remote.plist /Library/LaunchDaemons/com.cbergoon.restic_backup_remote.plist
sudo cp ./com.cbergoon.restic_cleanup_local.plist /Library/LaunchDaemons/com.cbergoon.restic_cleanup_local.plist
sudo cp ./com.cbergoon.restic_cleanup_remote.plist /Library/LaunchDaemons/com.cbergoon.restic_cleanup_remote.plist
cp ./private.restic_backup.conf ~/.restic_backup.conf
launchctl unload /Library/LaunchDaemons/com.cbergoon.restic_backup_local.plist
launchctl load /Library/LaunchDaemons/com.cbergoon.restic_backup_local.plist
launchctl unload /Library/LaunchDaemons/com.cbergoon.restic_backup_remote.plist
launchctl load /Library/LaunchDaemons/com.cbergoon.restic_backup_remote.plist
launchctl unload /Library/LaunchDaemons/com.cbergoon.restic_cleanup_local.plist
launchctl load /Library/LaunchDaemons/com.cbergoon.restic_cleanup_local.plist
launchctl unload /Library/LaunchDaemons/com.cbergoon.restic_cleanup_remote.plist
launchctl load /Library/LaunchDaemons/com.cbergoon.restic_cleanup_remote.plist