LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-05-2003, 05:42 AM   #1
buttersoft
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 178

Rep: Reputation: 30
Rsync


I have a question maybe someone can nudge me in the right direction.

tar cvzpfP /media/sda1/spb/20031105.tar.gz /home

The above TAR command works fine however when you try to look in the zipped tar, it is very slow........ok so it well over 100 megs.

I read an article about rsync, very clever stuff.

When I try to use rsync on my Kmail folders the Mail folders are copied, but their contents NOT!

My line to try out rsync is this:
rsync -vrlpR /home/spb/Mail _/media/sda1/Mail

Any ideas?
 
Old 11-05-2003, 05:55 AM   #2
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Re: Rsync

Quote:
Originally posted by buttersoft
I have a question maybe someone can nudge me in the right direction.

tar cvzpfP /media/sda1/spb/20031105.tar.gz /home

The above TAR command works fine however when you try to look in the zipped tar, it is very slow........ok so it well over 100 megs.

I read an article about rsync, very clever stuff.

When I try to use rsync on my Kmail folders the Mail folders are copied, but their contents NOT!

My line to try out rsync is this:
rsync -vrlpR /home/spb/Mail _/media/sda1/Mail

Any ideas?
Try this:

Code:
rsync -vrlpR /home/spb/Mail/ _/media/sda1/Mail
Note the trailing slash on the source directory. Without it, rsync syncs the directory, but not the contents.
 
Old 11-05-2003, 06:29 AM   #3
buttersoft
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 178

Original Poster
Rep: Reputation: 30
Does not work though!

It starts out OK and then creates the directories correctly but the contents no. One of the error lines is under:-

mkstemp home/spb/Mail/t2/cur/.1063997552.2506.fdGY:2,S.nUPHOR failed: Invalid argument

Last edited by buttersoft; 11-05-2003 at 11:01 AM.
 
Old 11-05-2003, 11:58 AM   #4
buttersoft
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 178

Original Poster
Rep: Reputation: 30
This works! rsync -vrlpR /home/spb/Mail/* /home/spb/test

As you can see to the same partition which is not what I wanted.

Here is the error when I try to run it directly to my Toshiba 2GB pcmcia hard-drive which is attached to sda1 (USB):-

rsync -vrlpR /home/spb/Mail/* /media/sda1/Mail

mkstemp home/spb/Mail/trash/cur/.1068028865.3426.0T90:2,S.mlqpEz failed: Invalid argument wrote 7574380 bytes read 2740 bytes 5051413.33 bytes/sec
total size is 7558608 speedup is 1.00
rsync error: some files could not be transferred (code 23) at main.c(620)

I am using SuSE 8.2
 
Old 11-05-2003, 12:37 PM   #5
buttersoft
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 178

Original Poster
Rep: Reputation: 30
Got it!
FULL backup of HOME
rsync -vrlpR /home/spb/* /home/spb/rsync_20031105

INCREMENTAL backup of HOME
rsync -uvrlpR --no-whole-file /home/spb/* /home/spb/rsync_20031105

Now I can use cp or a move command to dump the backup to my external drive and then remove the temporary folder in /home.

Exact backup at last. Takes about 2 minutes at the moment.
 
  


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 sant25 Linux - General 2 09-02-2005 04:34 PM
rsync $@ya Linux - Software 1 06-06-2005 12:45 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM
Rsync help tricky1234 Solaris / OpenSolaris 3 09-07-2004 11:08 AM
rsync-2.4.6-2 santha Linux - Software 1 08-25-2004 05:35 AM


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