Closed

linux script not working

#!/bin/bash

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

backup=/share/MD0_DATA/backup1

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

error message :

[/share/MD0_DATA/apps] # ./[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: C Programming, C++ Programming, Linux, Python, Shell Script

See more: find linux script, html2pdf linux script, linux script imagemagick, linux script delete lines file, linux script update database, linux script replace string file, script ebay bin, yahoo invisible script working, linux script probleme, verotelrum script working, linux script error handling, linux script manager users, dash linux script, linux script convert rar zip, linux script find replace, linux script mysql sync

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

Project ID: #16419393

20 freelancers are bidding on average $25 for this job

pdq

hello i work as a senior linux administrator in a hosting company. can check and fix your bash script very fast

$20 USD in 1 day
(113 Reviews)
5.9
sumitgarg44

A proposal has not yet been provided

$30 USD in 1 day
(33 Reviews)
4.6
swtroubleshooter

Hi, Thank you for posting your requirement. My name is Inderjeet, we're a small IT services firm based at Chandigarh, India. From looking at the script it seems you are trying to backup Linux system folders to a l More

$35 USD in 1 day
(5 Reviews)
3.5
$20 USD in 1 day
(13 Reviews)
3.4
aritron

Please give me more details about this script. I can try debugging it right away. I have done lot of scripts before in bash, python. Share more details.

$30 USD in 1 day
(1 Review)
2.3
mgeorgiev13

Dear Employer, I can help you with your shell script and make it work. If you have any questions, don't hesitate to contact me.

$20 USD in 1 day
(3 Reviews)
2.3
sandorszabo1711

Hello, I am Sandor. I am living in Europe, and I speak English fluently. I have 17 years of experience in software industry, from development to devops and full stack. I am sure I can fix this shellscript for More

$29 USD in 1 day
(1 Review)
0.8
$15 USD in 1 day
(0 Reviews)
0.0
$20 USD in 1 day
(0 Reviews)
0.0
psychocrypt0r

A proposal has not yet been provided

$21 USD in 1 day
(0 Reviews)
0.0
hemantkanthed

A proposal has not yet been provided

$27 USD in 2 days
(0 Reviews)
0.0
vinoth0608

It looks like folded error. We can fix easily.

$25 USD in 2 days
(0 Reviews)
0.0
omkarjpathak

Software engineer, 9 years of development experience using various technologies and platforms. Good at shell scripting.

$25 USD in 1 day
(0 Reviews)
1.1
kmortoza

A proposal has not yet been provided

$23 USD in 2 days
(0 Reviews)
0.0
plnanitha

I can fix this programming stuff Relevant Skills and Experience MTech CS

$25 USD in 1 day
(0 Reviews)
0.0
Puchkoff

Hello. I will fix your bug in 1 day

$35 USD in 1 day
(0 Reviews)
0.0
creaker

This looks like it's only a syntax issue in the script and just requires debugging and correcting the script.

$25 USD in 1 day
(0 Reviews)
0.0
izwanriza

Familiar about linux, script and linux component. Just need know the detail about database, database location. location to backup and what time to run it..

$25 USD in 2 days
(0 Reviews)
0.0
aduntoredas

Hello, It's very simple - you need to check the correct paths in the server from where you're running this script. Don't think this warrants a project for this, it's a 2 minute thing. Kind regards, CRC

$25 USD in 1 day
(0 Reviews)
1.4
$20 USD in 1 day
(0 Reviews)
0.0