debian_common

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
debian_common [2024/03/12 08:38] โ€“ [Enable colorful terminal] Jรบne Parkdebian_common [2024/03/19 11:30] โ€“ [Watchlist for backup] Jรบne Park
Line 40: Line 40:
 /opt/scripts/  /opt/scripts/ 
 </code> </code>
-**MariaDB** ''per DATABASE'' 
  
 +**update-motd** 
 +<code bash>
 +/etc/update-motd.d/
 +</code>
 +
 +**crontab** 
 +<code bash> 
 +sudo crontab -l 
 +sudo -u www-data crontab -l 
 +crontab -l 
 +</code>
 +
 +**MariaDB** ''per DATABASE''
 === Backup MariaDB DATABASE ===  === Backup MariaDB DATABASE === 
  
Line 50: Line 62:
 ----  ---- 
  
----- 
 === Backup using rsync command ===  === Backup using rsync command === 
  
Line 64: Line 75:
  
 ---- ----
 +=== Remote backup for webpages === 
 +Rsync with ''[TARGET]'' using rsync from ''[SOURCE]''  
 +<code bash> 
 +sudo -u www-data rsync -azP --exclude '.ssh' -e 'ssh -p [port_number]' --rsync-path="sudo rsync" /var/www/ [user]@[TARGET]:"/[TARGET PATH]../../"
 +</code> 
 +Put ''[SOURCE]'' public key in ''[TARGET]'' user's ''authorized_keys'' 
  
 +----
 ==== Configure log files ====  ==== Configure log files ==== 
  
  • debian_common
  • Last modified: 2024/04/18 08:58
  • by Jรบne Park