LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-04-2013, 08:23 PM   #1
barbz127
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Rsync not copying all files


Hi all,

Ive tried to be a bit tricky and set up two servers, one as my main and another offsite to act as a backup.

I have a series of rsync jobs that are to copy certain folders over ssh to the offiste server however Ive just checked and not all files are coming across.

The raw rsync job is
Code:
rsync -e ssh -azvs  user@IP:/remotemirror/user/ /localmirror/backups/
The users ID's on both machines do not match, however the user calling the job on the remote server has full access to that data drive likewise the ssh connected user has full access to the local server.

I have tried adding in
Code:
--no-o --no-g
with no success.

Any ideas why this would be missing some files/folders?

Thankyou
Paul
 
Old 08-04-2013, 08:38 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
are you pushing this out to any kind of log file so you can see exactly what is going on or are you just running the rsync manually?

fyi i always use -aviS, so you could -avziS if you need the compression like you are using above.

might be a good idea to create a script that will log the entire rsync output so you can go back and see exactly what files are transferred and what are not as well as why.

i have seen rsync refuse to move a file if it is in use and changes during the process of sending.
 
Old 08-04-2013, 08:56 PM   #3
barbz127
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for your response,

I am logging this in my script.

Ive found my issue...and this is a newbie forum after all - I moved the folder in question within another folder on the source but as I dont use the -delete command it didnt do the clean up.

Cheers
Paul
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
rsync copying everything not only changed files with luks encrypted drive changcheh Linux - General 1 09-10-2011 10:44 PM
rsync not copying files, no error shown RedMist Linux - Server 1 09-16-2009 09:44 AM
LXer: [Video] Commandline 101: Copying Files with rsync LXer Syndicated Linux News 0 04-11-2009 05:41 AM
Copying whole changed files - rsync? deadlock Linux - Software 2 12-04-2007 05:57 AM
prevent rsync from copying open files? bkeeper Linux - General 2 12-11-2006 05:16 AM


All times are GMT -5. The time now is 01:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration