Skip to content

zectorpt/rsyncandlogrotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Rsync Folders / Keep Logs and Rotate

That's right! Everything in an easy script!

Pre requirements:
find rsync

Tested under SUSE Linux Enterprise Server 11 SP1


Usage:

apt-get install git-all (Debian based)
OR
yum install git-all (RedHat based)

git clone https://github.com/zectorpt/rsyncandlogrotate.git
crontab -e
Create an entry with your scrpit path. In my case I need to run it every 3 hours and keep my last 10 logs.
Remember that you need to set up ssh keys between servers (avoid ask password) EX:https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2

Or... copy & paste and be happy...


If you like it, star my repo and don't delete my email from source code
[email protected]
josemedeirosdealmeida.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages