linux script not working , pasted the shell file code in the description ..
$10-30 USD
Suljettu
Julkaistu noin 6 vuotta sitten
$10-30 USD
Maksettu toimituksen yhteydessä
this is the code in the file , basically using rsync to copy multiple folders into backup folder with dates
#!/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/$[login to view URL] \
$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 :
# ./[login to view URL]
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]
./[login to view URL]: line 22: /bin: is a directory
#
I am expert in python for web application development using django and flask with API integration and customization.
Also a good hand in Odoo ERP customization ,Web scraping and lexical analysis.
I am a Oracle Certified professional (OCP) with experience in Oracle,MySQL, SQL Server and MongoDB.
I can help you with your requirements.
Please initiate online chat.. so we can proceed with discussion
hi,
May i have ssh connection to the server? Or perhaps you can share your screen via team viewer so that i can look into it?
Lets discuss more.
thanks
Pleased to meet you.
Im a Computer Engineer with more than 20 years of experience working with Linux and BSD.
I have developed multiple complex systems based on shell script. Im sure I will solve your issue and lead your project to success.
Please contact me for more information to start working together!
Hi
I will check if this folder is exist or not
/share/MD0_DATA/apps/
I have finished two shell script freelance task using another platform (fiverr and upwork),
i am a certified Linux Admin and Linux Instructor,
I have been working for 13 years
Rgs
Muhammad Momon RHCSA