LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2020, 02:45 AM   #1
bodomalo
LQ Newbie
 
Registered: Mar 2020
Posts: 1

Rep: Reputation: Disabled
rsync can't find files


I have a cron job, that makes a two different db dumps, and then saves all files from the website to adrive.com and also the dp dump to adrive in a 2nd rsync command

Since Feb 24 it produces this error:
rsync: rename "/home/user/dokumente/backup/.backup_mysql_autofill.sql.gz.NABXKv" -> "backup/backup_mysql_autofill.sql.gz": No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]

It produces the same error for thiny files (200-500 bytes)
It always makes the error for the SAME file.
It can rsync the first db dump (800MB), it can rsync the DB log file (45 MB), but always stops at the 2nd dump (770 MB)

Now here comes the joke. Rsync worked again for 2 nights this Monday and Thuesday, then the error came back yesterday night.

So, I did not have a backup from Feb 24 Until March 2, when it sudddenly worked again for March 2 and March 3 (the whole script just did the job)


HEre is my rsync command:

BACK_USR="bodomalo@xxx.com"
BACK_SVR="rsync.adrive.com"
BACK_DIR="/opt/backup"
cd $BACK_DIR
rsync -avz -e 'ssh -i /root/.ssh/adrive.id' $BACK_DIR $BACK_USR@$BACK_SVR:dokumente

Any idea?
 
Old 03-05-2020, 03:48 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,764

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Welcome to linuxquestions.

What about the part of the script that creates the db dump files. Have you checked the logs for errors?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Rsync files modified or added after a certain date: rsync-find vs. find-rync Wilkerson Linux - Newbie 6 04-01-2018 09:40 PM
Equivalent to --remove-source-files for rsync in older versions of rsync anon091 Linux - Server 7 08-11-2016 10:30 AM
rsync problems, can you look at my command? - Rsync gurus. Spuddy Linux - Software 4 09-21-2010 10:25 AM
rsync can not rsync files with include filter... xiutuo Linux - Server 2 07-23-2010 02:10 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration