Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-04-2013, 07:23 PM   #1
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
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
--no-o --no-g
with no success.

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

Old 08-04-2013, 07:38 PM   #2
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, 07:56 PM   #3
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.



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

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

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