Skip to content

Set of scripts to perform a backup of data and fetch from remote machines.

License

Notifications You must be signed in to change notification settings

liskiew/radogost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

radogost

Stories in Ready Stories in Progress

Throughput Graph

Radogost is an old god of hospitality in the Slavic mythology.

This project is a set of scripts to:

  • fetch backup from remote machines using scp

Download

cd $HOME
git clone https://github.com/goodylabs/radogost.git

Install in crontab

The following will install a crontab entry with fetching:

  • files that match regexp: backup_*.sql.gz
  • from a remote directory /home/some_remote_user/backup
  • from a remote machine somehost.com:22

and put it in $HOME/project_x into local user. It will autorotate old backups and only latest 3 will remain in that directory.

{ crontab -l ; echo '38 5 * * * $HOME/radogost/scripts/fetch_latest_backups.sh somehost.com 22 /home/some_remote_user/backup "backup_*.sql.gz" $HOME/project_x 3'; } | crontab -

About

Set of scripts to perform a backup of data and fetch from remote machines.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%