Saminnet-Search Article Wiki Forum Blog SNS Cloud
Cacti backupγ‚Ήγ‚―γƒͺγƒ—γƒˆ

  • Data-Articles
    • Slower CKD stage (3) Wed12,16:41pm

      Having your kidneys work β€” even a little β€” can help you feel better and live longer. If you can slow your CKD, you can delay the need for treatment of kidney failure. The types of changes you might make to help your heart or the rest of your body will help your kidneys, too. Here are some things you can do β€” or avoid β€” to protect your kidneys: r Blood Sugar In The Target Range.…


Cacti backupγ‚Ήγ‚―γƒͺγƒ—γƒˆ

[root@localhost www]# cat

cd /var/www/
# Remove old backups
find /var/www/backups/* -mtime +5 -exec rm -fr {} \; > /dev/null 2>&1

# Remove old RRAs (usually means the datasource is deleted)
find /var/www/html/rra/* -mtime +2 -exec rm -fr {} \; > /dev/null 2>&1

# Create the filename for the backup
eval `date "+day=%d; month=%m; year=%Y"`

# Dump the MySQL Database
mysqldump -uroot --opt cacti> /var/www/html/cacti-backup.sql
mysqldump -uroot --opt syslog> /var/www/html/syslog.sql

# Gzip the whole folder

tar -Pcpzf /var/www/backups/$INSTFIL /var/www/html/*

# Remove the SQL Dump
#rm -f /var/www/html/cacti-backup.sql
#rm -f /var/www/html/syslog.sql

Add comment

Articles by Date

TweetTweet Share on LinkedInShare on LinkedIn Share on Google+Google+ Submit to RedditReddit Publish on WordPress WordPress Send emailSend email