-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding QNAP instructions and compatibility
- Loading branch information
Showing
2 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,30 @@ on a really flexible search query system. | |
`drivebackup --data ~/backup` | ||
|
||
See https://developers.google.com/drive/v3/web/search-parameters#examples | ||
for further examples of using --filter | ||
for further examples of using --filter | ||
|
||
## Installation on a QNAP | ||
|
||
Copy the drivebackup binary to your QNAP using SSH. | ||
|
||
`scp drivebackup [email protected]:` | ||
|
||
_Replace [email protected] with the actual username and IP address_ | ||
|
||
Run manually once to authenticate. | ||
|
||
`./drivebackup --configure` | ||
|
||
Create cron job | ||
|
||
`echo '30 3 * * 0 /root/drivebackup --data /share/MD0_DATA/mybackupshare --filter "'1B8dgVVPsv2wOeE2pX19kNU91bTg' in parents"' >> /etc/config/crontab` | ||
|
||
Restart the cron daemon | ||
|
||
`crontab /etc/config/crontab && /etc/init.d/crond.sh restart` | ||
|
||
__Be sure to change the command to include your own options__ | ||
|
||
The above example will run at 03:30 every Sunday and backup everything from the | ||
Google Drive folder with an ID of 1B8dgVVPsv2wOeE2pX19kNU91bTg to the QNAP share | ||
called mybackupshare that is stored on the MD0_DATA volume. |
This file contains 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