Hi,
This is a pretty basic script i have started in python..
I intend to eventually, in nyears to come lol, to use it to backup from my server(FTP) to my local backup drive (E), then backup again to my other Local backup drive (D:).
So far im buzzing..
I managed to copy using copytree from a directory i specify in the script to another directory that i specify in the script..
Local E: to local D:..
my next task, well next mission is to be able to Input the directory i wish to copy from and copy to..
i assumed this would be as simplae as chanhging the
src =
to
src = input()
alas this causes an error..
anyways here is the script and i would appreciate any input as Python, so fun is still an alien langauge to me lol..
import shutil, os, datetime, time, sys
newFolderName = datetime.datetime.now()
newFolder = newFolderName.strftime('%m%d%Y')
src = input('type the src dir: ')
dst= input('type the dest dir: ' +
newFolderName.strftime('%d-%B-%y\\').upper())
shutil.copytree(src, dst)