Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 39981

rsync error.. please help :(

$
0
0

Hello,

Can anyone help please.. i am using the following script.. but keep getting error message:
/usr/local/sbin/backup-cpanel.sh: line 5: fg: no job control
Unexpected local arg: /backup/current/
If arg is a remote file/dir, prefix it with a colon (:).
rsync error: syntax or usage error (code 1) at main.c(1215) [receiver=3.0.6]
^C

**here is the code:
**

!/bin/bash

/bin/mail -s "Server backup started" "email@mail.com"

BACKUPDIR='date %A';

nice rsync root@ip:/backup/cpbackup/daily/ /backup/current --progress --force --ignore-errors --delete-excluded \ --delete --backup --backup-dir=/backup/$BACKUPDIR \ -avs --recursive

/bin/mail -s "Server backup completed" "email@mail.com"


Viewing all articles
Browse latest Browse all 39981

Trending Articles