1

Problem running the python code for backup on Ubuntu?

view story
linux-howto

http://askubuntu.com – I was trying to run following python code through terminal but something is wrong as it is producing some errors source = ['"C:\\My Documents"', 'C:\\Code'] target_dir = 'E:\\Backup' target = target_dir + os.sep + time.strftime('%Y%m%d%H%M%S') + '.zip' zip_command = "zip -qr {0} {1}".format(target, ' '.join(source)) if os.system(zip_command) == 0: print('Successful backup to', target) else: print('Backup FAILED') but when i try to run it following error appears zip error: Nothing to do! (try: zip -qr E:Backup/20131018095036.zip . -i C:\My Documents C:Code) Backup FAILED am i no (HowTos)