@
funcman 额 一不小心给贴上来了
crontab输出的记录..不知道为什么7z not found,手动执行 7z a没有问题
/root/
backup.sh: line 28: 7z: command not found
This is the first time you run this script.
1) Open the following URL in your Browser, and log in using your account:
https://www2.dropbox.com/developers/apps 2) Click on "Create App", then select "Dropbox API app"
3) Select "Files and datastores"
4) Now go on with the configuration, choosing the app permissions and access restrictions to your DropBox folder
5) Enter the "App Name" that you prefer (e.g. MyUploader306951655520556)
Now, click on the "Create App" button.
When your new App is successfully created, please type the
App Key, App Secret and the Permission type shown in the confirmation page:
# App key: # App secret: # Permission type, App folder or Full Dropbox [a/f]:
> App key is , App secret is and Access level is Full Dropbox. Looks ok? [y/n] # App key: # App secret: # Permission type, App folder or Full Dropbox [a/f]:
mail里面的也是说7z not found
To: root@zhao
Subject: Cron <root@zhao> /
autobackup.shContent-Type: text/plain; charset=ANSI_X3.4-1968
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Status: RO
/
backup.sh: line 28: 7z: command not found
/
backup.sh: line 29: //
dropbox_uploader.sh: No such file or directory