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

  • Data-Articles
    • Normal Blood test result (10) Tue19,15:22pm

      Here are some common tests that are done when you have CKD: Kidney Function Measures of Kidney FunctionNormal Levels Serum Creatinine Creatinine (cree-A-ti-neen) is a waste you make each time you move a muscle. Those with more muscle make more creatinine. Healthy kidneys remove creatinine from your blood. This means that a high serum (blood) level may be due to kidney damage. If y…


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