Zaprto

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

Znanja: C programiranje, C++ programiranje, Linux, Python, Shell Script

Več: error 1 in running shell script, command not found bash, command not found in shell script if statement, command not found shell script variable, command not found in shell script error, bash script not found, cat command not found shell script, command not found via shell script but works on terminal, 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

O delodajalcu:
( 54 mnenja ) London, United Kingdom

ID projekta: #16419393

20 freelancerjev ponuja v povprečju za $25 na tem delu

pdq

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

$20 USD v 1 dnevu
(113 Ocen)
5.9
sumitgarg44

A proposal has not yet been provided

$30 USD v 1 dnevu
(33 Ocen)
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 Več

$35 USD v 1 dnevu
(5 Ocen)
3.5
$20 USD v 1 dnevu
(13 Ocen)
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 v 1 dnevu
(1 Ocena)
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 v 1 dnevu
(3 Ocen)
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 Več

$29 USD v 1 dnevu
(1 Ocena)
0.8
$15 USD v 1 dnevu
(0 Ocen)
0.0
$20 USD v 1 dnevu
(0 Ocen)
0.0
psychocrypt0r

A proposal has not yet been provided

$21 USD v 1 dnevu
(0 Ocen)
0.0
hemantkanthed

A proposal has not yet been provided

$27 USD v 2 dneh
(0 Ocen)
0.0
vinoth0608

It looks like folded error. We can fix easily.

$25 USD v 2 dneh
(0 Ocen)
0.0
omkarjpathak

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

$25 USD v 1 dnevu
(0 Ocen)
1.1
kmortoza

A proposal has not yet been provided

$23 USD v 2 dneh
(0 Ocen)
0.0
plnanitha

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

$25 USD v 1 dnevu
(0 Ocen)
0.0
Puchkoff

Hello. I will fix your bug in 1 day

$35 USD v 1 dnevu
(0 Ocen)
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 v 1 dnevu
(0 Ocen)
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 v 2 dneh
(0 Ocen)
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 v 1 dnevu
(0 Ocen)
1.4
$20 USD v 1 dnevu
(0 Ocen)
0.0