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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-07-2006, 09:50 AM
|
#1
|
|
Member
Registered: May 2003
Location: Saarland, Germany
Distribution: Arch
Posts: 36
Rep:
|
rsync: error while copying
hey guys!
I would like to backup my system with rsync. Befrore writing a complete script I wanted to understand how rsync works and if everything works all right.
I tried to backup my home dir to my external hdd. Therefore I used this command:
Code:
rsync -avz --del --force --progress --exclude-from=/home/fixje/backup-script/exceptions /home/fixje/ /mnt/exhdd/linux_fixje/home
As result many files where copied correctly and even the exceptions worked!
But then I got an error
Code:
building file list ...
507 files to consider
./
?
6 100% 0.00kB/s 0:00:00 (1, 0.4% of 507)
.fonts.cache-1
41 100% 20.02kB/s 0:00:00 (2, 1.4% of 507)
rsync: mkstemp "/mnt/exhdd/linux_fixje/home/.?.Zrtftp" failed: Invalid argument(22)
sent 10565 bytes received 70 bytes 21270.00 bytes/sec
total size is 192509874 speedup is 18101.54
rsync error: some files could not be transferred (code 23) at main.c(789)
I have really no idea!
Thanks for your replies!!
|
|
|
|
07-07-2006, 10:02 AM
|
#2
|
|
Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,644
|
You have a file named "/mnt/exhdd/linux_fixje/home/.?.Zrtftp"?
The ? is a shell meta-character that matches any single character. It may be that rsync thinks you are looking for files like:
.a.Zrtftp, .b.Zrtftp etc... but you don't have anything. I'd really suggest you not name files with special characters in them like this.
|
|
|
|
07-07-2006, 10:06 AM
|
#3
|
|
Member
Registered: May 2003
Location: Saarland, Germany
Distribution: Arch
Posts: 36
Original Poster
Rep:
|
that's the joke:
there is no such file containing a '?' or a file that's named like '.?.Zrtftp'
What I forgot to mention: the filename always changes with every attempt!
|
|
|
|
07-07-2006, 10:18 AM
|
#4
|
|
Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,644
|
If you go to /mnt/exhdd/linux_fixje/home and do "ls -la" what IS there? It may be that trying to list the file is having odd issues because it encounters the meta-character.
Is the file always in the same path?
Does the file always appear to have the ? in its name?
|
|
|
|
07-07-2006, 10:34 AM
|
#5
|
|
Member
Registered: May 2003
Location: Saarland, Germany
Distribution: Arch
Posts: 36
Original Poster
Rep:
|
if I do a "ls" I don't see any file looking like this. But what I found is (as you can see in the error message) that these files are only temporary files which always look the same way:
.?.<random combination of chars>
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:57 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|