Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having a problem with my backup script. I am new to this. I am running Suse Linux and using rsync to backup some of my servers to this server. I want to use cron to run a bigger script than this, but I have a problem with the script. When I run the script, it works the first time, but all the directories that have been moved are named (for example):
backup.20%0d
rather than:
backup.20
I need to know why it puts the %0d after the directory name.
Below is the script, why is this happening? Please help.
Hmm, interesting. Not sure why it would append that. But, wow, what a script . Why not tar and gzip the backups? That way, it doesn't take up as much space. Something like this:
This backup script wasn't uploaded from a windows machine or anything, was it? %0d, taken as hex for an ASCII character, is the \r character used in windows line endings.
I appreciate the help. What I did to fix it was retype everything on the linux box. I had originally typed the text on a windows pc and when I got it to the linux box, copied and pasted the text into my script file. I still don't know why that wouldn't work, but its done. Thanks Steve
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.