I have a feature request. I run a different backup for each day of the week so that they go into separate directories. It would be nice if I could just run with one script file that has sections in it that could be defined in the "-f" command line argument instead of a different script file for each day. I didn't see in the documents that it could already do anything like this. Maybe something like this would work:
root#> lftp -f /home/dbuehler1/.script.txt --section=Monday
or
root#> lftp -f /home/dbuehler1/.script.txt --section=Tuesday
or
root#> lftp -f /home/dbuehler1/.script.txt --section=test



The would consist of the following lines. -----start of .script.txt file ----- [Monday] # This would run if the command line argument was for Monday lftp ftp://login:[EMAIL PROTECTED] cd /SHARE1 lcd /home/dbuehler1/Monday mirror -s --delete-first --parallel=5

[Tuesday]  # This would run if the command line argument was for Tuesday
lftp ftp://login:[EMAIL PROTECTED]
cd /SHARE1
lcd /home/dbuehler1/Tuesday
mirror -s --delete-first --parallel=5

[test]  # This would run if the command line argument was for test
lftp ftp://login:[EMAIL PROTECTED]
cd /test
lcd /home/test
mirror -s -R --delete-first --parallel=1
----end of .script.txt file-----

I would be glad to test this if Alexander gave me a diff file for it.

Thanks
Steve



Reply via email to