8000 GitHub - petermlm/backup: A script to help make simple backups in a Linux system · GitHub
[go: up one dir, main page]

Skip to content
{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2FGitHub.com%2Fpetermlm%2Fbackup","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\u0026source_repo=petermlm%2Fbackup","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://GitHub.com/petermlm/backup\",\"user_id\":null}}","auth_hydro_click_hmac":"bd8e4ed2cc6a88132c030ed3b51f6d3d0d8cdbf024d340de4535338f1cccb6fd"}}
petermlmPublic

About

A script to help make simple backups in a Linux system

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

About

BackUp is a small script to help me create quick and dirty tar file containing backups of my file system.

I developed this script because I had a few directories in separate locations and I wanted to back them up into a single tar file.

Also because back in 2013 I was new to Git and GitHub and wanted to try these things.

Arguments

-h             - Display help
-b bu_file     - bu_file location. Defaults to the script's directory
-o target_file - The resulting tar file. Default to the script's directory

How To Use

BackUp works by reading from a file, called bu_files, which contain the files and directories you want to store to the target tar file. The directories may be absolute or relative.

For example, if bu_files has:

/home/someuser/Documents/
/home/someuser/Images/
local_file
local_directory

The contents of the tar file will be:

backup_2013_06_23.tar
|--Documents/
|--Images/
|--local_file
|--local_directory

The location of each file/directory is not preserve in the tar file. Because of that there can't be two files with the same name, like for example:

/dir1/file
/dir2/file

The script warns the user about this.

Entries in bu_files can be use to exclude certain directories. They should be appended with a - like so:

-node_modules

Run Tests

python3 test.py

About

A script to help make simple backups in a Linux system

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

0