Skip to content

andreporto/folder-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

GitHub repo size Last commit

Simple shell script to make encrypted folder backup

Installation

git clone https://github.com/andreporto/folder-backup.git

chmod +x ./folder-backup/fbkp.sh

ln ./folder-backup/fbkp.sh ~/fbkp.sh

01 Clone repo and config script:

02 Do your backups:

03 Restore your backup to a selected folder:

Usage


folder-backup.sh "SOURCE_FOLDER" ["TARGET FOLDER NAME"] ["CUSTOM PASSWORD"]

  • "SOURCE_FOLDER" IS THE SOURCE FOLDER NAME TO BACKUP, IT CAN CONTAINS FILES AND SUB-FOLDERS
  • IF NO TARGET FOLDER IS ENTERED IT WILL BE CREATED A SOURCE_FOLDER + DATE NAMED FOLDER
  • OPTIONALLY YOU CAN ENTER A [CUSTOM PASSWORD]
  • IF NO PASSWORD IS ENTERED DEFAULT PASSWORD WILL BE USED TO ENCRYPT FILES
  • "REPLACE-THIS-TEXT-WITH-YOUR-REAL-PASSWORD-IN-DOUBLE-QUOTES" IS THE DEFAULT PASSWORD AND YOU CAN CHANGE IT.

Examples:

  • Zip all files and sub-folders from MyFolder to a new folder named with MyFolder-YYYY-MM-DD pattern. All zip files will be encrypted with with custom or default password.
~/fbkp.sh MyFolder

  • Zip all files and sub-folders from MyFolder to MySafeStorage folder. All zip files will be encrypted with with custom or default password.
~/fbkp.sh MyFolder MySafeStorage

  • Zip all files and sub-folders from MyFolder to MySafeStorage folder. All zip files will be encrypted with "MySecureKey123" password.
~/fbkp.sh MyFolder MySafeStorage MySecureKey123

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Simple shell unix script to make folder backups

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages