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/13 06:44] – [Watchlist for backup] 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**  **update-motd** 
 <code bash> <code bash>
Line 46: Line 46:
 </code> </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 54: Line 62:
 ----  ---- 
  
----- 
 === Backup using rsync command ===  === Backup using rsync command === 
  
Line 68: 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