LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-01-2004, 01:41 PM   #1
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Another Rsync question


I have Rsync working fine untill i try to move 5 different metalica mp3's I have lots of other mp3 with the same file name setup that sync just fine but when it gets to the metalica file names it stops. If I move them out of the directory then it work fine. The originator of Rsync must have been a metalica fan and didn't want to break copy right laws huh?

Here is the rsync command

rsync -e ssh -avz --delete-after --progress /mnt/g9g/ root@server:/mnt/gnotes09g/

Last edited by phatboyz; 07-01-2004 at 02:34 PM.
 
Old 07-01-2004, 03:42 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try it with increased verbosity:
rsync -e ssh -vvavz --delete-after --progress /mnt/g9g/ root@server:/mnt/gnotes09g/

What does it output?
 
Old 07-02-2004, 08:46 AM   #3
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Original Poster
Rep: Reputation: 30
Thanks david I got it working. I dont know what was really wrong but I deleted the files and riped them off my CDS again and then I copyed them to the destination dir and then ran rsync just to synce the two. It workd fine. Since I have your attention now can you tell me how to do this scrip. Also at the end of a Scrip how do I tell the puter that it id finished. I made a script just to mount the drives and it mounts them, but never brings me back to the command prompt. I use chmod 777 file name after using VI I store this is /sbin
#THIS SCRIP AUTO MOUNTS ALL DRIVES AND BACKS UP G DRIVES
#mounts NTFS drive on notes09
mount -t smbfs -o username=bob,password=bob //bobserver/g /mnt/bobserverg
#LOGS INTO REMOTE BACKUP SERVER
ssh rmotebobserver
#MOUNTS DRIVES ON REMOTE SERVER
mount -t smbfs -o username=bob,password=bob //bobserver/g /mnt/bobserverg
#LOGS OUT OF REMOTE SERVER
logout
#SYNC'S THE DIRESTORIES
rsync -e ssh -avz --delete-after --progress /mnt/gnotes09g root@server:/mnt/gnotes09g/./

umount /mnt/bobserverg
ssh rmotebobserver
umount /mnt/bobserverg
logout


I tried it like this, but it didn't work right. Can you tell me a better way?
Should I have cron mount the drives 30 min before and the have cron run the rsync command?

Also I have never used cron so if you could explain to me what I should to it would be helpful

Last edited by phatboyz; 07-02-2004 at 09:36 AM.
 
  


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
rsync --delete question Red Squirrel Linux - Software 2 10-10-2005 09:55 PM
rsync question kpachopoulos Linux - General 3 07-15-2005 03:33 PM
Question about rsync bgriesi Linux - Networking 4 12-31-2004 08:19 AM
rsync error AND/OR dump question Sinope Linux - General 4 08-26-2004 05:57 PM
rsync question falco365 Programming 4 05-25-2003 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:06 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