Skip to content

Silicon51/BackPOI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HI!

Backpoi is easy and simple bash script with shell commands used for backup. Main goal is to made a copy of files which are on one drive (eg. SSD) and copy it to second drive to store as HDD or NAS storage

MANUAL: 0) FOR THE FIRST TIME YOU NEED TO RUN IT WITH ROOT PERMISIONS (AS SODO) TO ALLOW SCRIPT CREATE ALL NECESSARY FILES

  1. Both files should be in this same folder eg for ubuntu 22 and 24 (both tested) strongly suggested is /usr/local/bin/ thanks to that it is possible to access to script by typing $backpoi instead of full path. Another option is to link files from your folder by executing ln -s /path/to/backpoi /usr/local/bin
  2. Script allows for 2 types o backup:
  • manual - requires parameter of destination path and there create new folder for backup (name is date_time of script)
  • periodical - both source and destination for backup cames from config file. Backup is only made if given time for each backup period is exeed. Script will copy all files from all sources (path*) to all destinations (dest*). In each destination folder will be made or updated folders with names based on b*_period values eg. "1d", "30d", "17d". Then subfolders (A and B) in each directory will be made, script will update subdirectory changed intermittently - after each given period subfolder A or B will be purged and filled with latest backup
  1. For scheduling backup use crontab by typing crontab -e or backpoi -s

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages