|
@@ -38,13 +38,13 @@ if not os.path.exists(today):
|
|
|
print('Successfully created directory', today)
|
|
|
|
|
|
# 5. We use the zip command to put the files in a zip archive
|
|
|
-zip_command = "zip -r {0} {1}".format(target,
|
|
|
+zip_command = 'zip -r {0} {1}'.format(target,
|
|
|
' '.join(source))
|
|
|
|
|
|
# Run the backup
|
|
|
-print("Zip command is:")
|
|
|
+print('Zip command is:')
|
|
|
print(zip_command)
|
|
|
-print("Running:")
|
|
|
+print('Running:')
|
|
|
if os.system(zip_command) == 0:
|
|
|
print('Successful backup to', target)
|
|
|
else:
|