A Script made in Python to Backup Folders and its files.
-
distutils ( Comes Installed with Python )
-
os ( Comes Installed with Python )
-
sys ( Comes Installed with Python )
-
time ( Comes Installed with Python )
-
math ( Comes Installed with Python )
You have to install Python and Git
Create a folder.
Open Command Promt.
Type in: cd The path to your new folder. (Example: C:\Users\User\Desktop\New folder)
Press enter.
After that type in: git clone https://github.com/Arisamiga/Python-Backup.git
Press enter.
When you see all Github files in your folder you installed the bot files succesfully.
After that you would want to edit the backup.py script
Add the paths you want to backup in backup_dir
backup_dir = [
r"C:\Users\User\Desktop"",
r"C:\Users\User\Music"",
r"C:\Users\User\Documents"",
r"C:\Users\User\Pictures"",
]
Run the Script by using python backup.py
When you run the script you should see this
1: Is to start the backup sequence
2: Is to check that your paths are correct and that they exist.
3: Is to exit the script.
After you Press "1" You will be shown the approximate size of your backup if you want to continue press y
.
You will be asked to give a path of the backup Folder. A Backup Folder will be created with the date within the Path you have given
Eg. ThePathGiven/Backup-2022-11-05/
After You have provided a path a folder will be created and the backup will start!