Thanks for all the help. Finally, I have this working -- I don't know why it works when the other things I tried did not, but at this point I'm just happy that it does. Here's what I did:
1. I created a cron job that looks like this:
0 12 *** /home/myhome/backup.txt
2. In file backup.txt, I...
Thanks for the tip, Eric --
but no, it doesn't work. When I put the parentheses into the script, which is called remote_backup.sh, and I run:
./remote_backup.sh
from the command line, it just hangs.
Thanks for the help -- but nope, it still doesn't work.
First, I tried the line exactly as you specified it above. No dice. Then I broke it down, removing bits off the end until it worked.
I get this far: "./bak.sh", but anything after this that I put on the line causes the script to halt...
The redirection part works fine: I get the email of the text file. It's the first part that's the problem. I'm not sure where in the script to put "rsync parms 2>&1 > filename.txt;" when I enter than line into a console window I get an error message from rsync (which makes sense, since "parms"...
The above is close to what I had originally (ls -l). The problem is that this sends a listing of files, but does not show other messages that I see onscreen when I run the script from a console. From the console, I see rsync's and fmirror's own messages (errors and other information), which I...
I've been looking around for awhile trying to figure out how to do what seems like a very simple thing:
I have a Bash script that runs rsync and fmirror for backups. It's only a few lines long (it just has the commands to run the backup). When I run script in a console window, I see it working...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.