Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: the-heck on February 26, 2008, 10:54:43 AM
-
Hi guys,
Please help me. I cannot restore a file from affa archieve using rsync.
Tried:
rsync -av "/var/affa/filshare/daily.4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" 192.168.1.7:"/home/e-smith/files/ibays/mechfiles/files/Valve Control \\(Design Gr\\)/VALVE LIST FOR ISSUED.xls"
I also tried to export to a variable but to no avail.
Anyone please.
-
Try:
rsync -av "/var/affa/filshare/daily.4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" "192.168.1.7:/home/e-smith/files/ibays/mechfiles/files/Valve\\ Control\\ \(Design\\ Gr\)/VALVE\\ LIST\\ FOR\\ ISSUED.xls"
Edit: The blank character between "Design" and "Gr" in the destination path was not escaped.
-
Dear MWeinber,
I tried and here is the result. I really don't know how what more to escape. Please help.
Thank you in advance.
*********************
[root@fileshare2 Valve Control (Design Gr)]# rsync -av "/var/affa/filshare/daily .4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" 192.168.1.7:"/home/e-smith/files/ibays/mechfiles/files/Valve Co ntrol \\(Design Gr\\)/VALVE LIST FOR ISSUED.xls"
[root@fileshare2 Valve Control (Design Gr)]# rsync -av "/var/affa/filshare/daily .4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" "192.168.1.7:/home/e-smith/files/ibays/mechfiles/files/Valve\\ Control\\ \(Design Gr\)/VALVE\\ LIST\\ FOR\\ ISSUED.xls"
building file list ... rsync: link_stat "/var/affa/filshare/daily.4/home/e-smith /files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls " failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 19.60 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at main.c(977) [sende r=2.6.9]
*****************
-
My fault. The command in my first post was not correct. I have edited it. Please try it again.
Dealing with pathes that contain special characters is a little bit tricky with rsync. Source and destination path must be quoted. In the destination path blanks must be protected with two backslashes and brackets with a single backslash
-
This is the result.
*************
[root@fileshare2 Valve Control (Design Gr)]# rsync -av "/var/affa/filshare/daily.4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" "192.168.1.7:/home/e-smith/files/ibays/mechfiles/files/Valve\\ Control\\ \(Design\\ Gr\)/VALVE\\ LIST\\ FOR\\ ISSUED.xls"
building file list ... rsync: link_stat "/var/affa/filshare/daily.4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]
******************
Still having error.
I tried playing around the backslashes, but I really can't get it. I really appreciate your help.
-
Is "fileshare2" your Affa server and "192.168.1.7" your production server?
Or in other words: Did you run the command on the Affa server?
-
Yes, I did ran the given code in Fileshare2.
Fileshare2 is the Affa Server. 192.168.1.7 is the production server.
The root password for each server is different. Is this related? I have done a restore of a folder before and it smoothly restore everything.
This time, I really am at a dead end. :sad:
-
I got it!!! there is one letter "e" in filshare2, must be fileshare2, in the latest code you given that is missing.
You are so correct in backlashes and quotes!!
Thank you very very very much mweinber!
-
I got it!!! there is one letter "e" in filshare2, must be fileshare2, in the latest code you given that is missing.
Ok. I have just copied the path from your initial post.
-
Affa Wiki page (http://wiki.contribs.org/Affa#Restore_single_files_or_directories) updated.