linux script not working , pasted the shell file code in the description

this is the code in the file , basically using rsync to copy multiple folders into backup folder with dates


date=`date "+%Y-%m-%dT%H-%M-%S"`


targets="/bin /etc /lib /lib64 /opt /sbin /usr /var"

mkdir -p $backup/logs

rsync -a \

--stats \

--partial \

-h \

-H \

-A \

-X \

-x \

-R \

--log-file=$backup/logs/$[url removed, login to view] \

$targets \

--link-dest=$backup/latest \

$backup/incomplete_$date \

&& mv $backup/incomplete_$date $backup/$date \

&& rm -f $backup/latest \

&& ln -s $backup/$date $backup/latest


script gives this error message :

# ./[url removed, login to view]

rsync: link_stat "/share/MD0_DATA/apps/ " failed: No such file or directory (2)

Number of files: 0

Number of files transferred: 0

Total file size: 0 bytes

Total transferred file size: 0 bytes

Literal data: 0 bytes

Matched data: 0 bytes

File list size: 3

File list generation time: 0.001 seconds

File list transfer time: 0.000 seconds

Total bytes sent: 12

Total bytes received: 12

sent 12 bytes received 12 bytes 48.00 bytes/sec

total size is 0 speedup is 0.00

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1638) [sender=3.0.7]

./[url removed, login to view]: line 22: /bin: is a directory


Skills: Linux, Python, Shell Script, System Admin, UNIX

See more: linux script delete lowest numbered file, linux script add line beginnig file, linux script write file, shell scripting programs examples, shell script programs examples in linux pdf, supervisor directory not working, supervisor fatal can't find command, supervisor cannot find command, ksh command line arguments, bash, korn shell scripting tutorial, linux script delete file, linux script remove file, shell script add string end file, linux script replace line file, bash script scan email addresses file, directory list script file description, linux script find replace file, remove file duplicates linux script, shell script delete lines starting file linux

About the Employer:
( 52 reviews ) London, United Kingdom

Project ID: #16419710

Awarded to:


Look like the line numbers are not proper when you pasted. Can you pastebin or attach the script ? Message me, let's discuss the project.

$25 USD in 1 day
(233 Reviews)

6 freelancers are bidding on average $31 for this job


hello i'm a senior linux administrator in a hosting company. have ideas about your script, we can discuss via chat

$25 USD in 1 day
(131 Reviews)

A proposal has not yet been provided

$30 USD in 1 day
(38 Reviews)

Hello I am a system and network administrator, with more then 10 years of experience. I worked with different services and servers, particularly, designing of local datacenter, management of local and remote si More

$50 USD in 1 day
(37 Reviews)

A proposal has not yet been provided

$30 USD in 1 day
(0 Reviews)

I have very good knowledge of Shell scripting. I understand your concern and I can fix it. .

$25 USD in 1 day
(0 Reviews)