Re: help with backup script
Michael Tosch wrote:
scp -rpv "root@remotehost::/var/backup/*" /home/susedbbackup > tmpfile ||
mail ... < tmpfile
P.S. you better quote the * expression, so the shell
does not try to match it with the local file system.
If you're using -r you don't need the * anyway.
--renato
PS: have you considered rsync for backup?
--
Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
.
Relevant Pages
- Re: For Loops and Space in Names, take 2
... But you probably should quote $1 because of this: ... Probably leaked from the mv command you're printing. ... knowledge of the shell. ... You could use it to generate your mv commands with echo ... (Fedora) - Re: how to set timeout for read command
... > The shell is asked to do a number of things. ... This could take a very long time if the remote machine is not ... > Line 7 kills off the background subshell, ... forward quote before (sleep.... ... (comp.unix.shell) - Re: yet another newbie question about quoting
... > I'm trying to understand how quoting (single and double quote) works ... > with bash. ... The 2nd one is correctly quoted - you want the Shell to see one string. ... (comp.unix.shell) - Re: Pagano, quote mines, and is the universe rotating?
... Einstein agree that could be the case? ... A quote mine is a quote from an authority, which quotes selectively, in ... shell experiences an accelerative force. ... geocentricity is the daily rotation of the universe around the earth. ... (talk.origins) - Re: Simple shell script driving me nuts
... parameter on the script commandline. ... If you need this to save interactive typing, code it as an shell ... one should not forget about the backslash as a means to quote ... Some shells automagically insert the latter when enabling file name ... (comp.unix.programmer) |
|