python script for backing up all the files to root directory every midnight
what is the python script?
Collapse
X
-
Not sure how to answer this question as it is so vague (and helpless I might add..)
Let me Google that for you.. http://lmgtfy.org/?q=python+backup+script
Seriously though I would imagine you would need to write a script that copies the structure and all entries in your source directory to your target directory. This might be accomplished with a look at the os and the os.path modules, specifically os.walk() and/or os.listdir(). And, as you say to the 'root' directory I assume you are on a *nix flavor. Add the python script to the crontab for midnight and, Voila!
Hope this helps!
Comment