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
debian_common [2024/03/19 11:25] – [Watchlist for backup] JΓΊne Parkdebian_common [2024/04/18 08:58] (current) – JΓΊne Park
Line 1: Line 1:
 <nav>  <nav> 
   * {{fa>server?color=#8B0000}} Linux   * {{fa>server?color=#8B0000}} Linux
-    * [[:rpi_common|β–  General Things on Raspbian]]Β +    * [[rpi_common|β–  General Things on Raspbian]]Β 
-    * [[:rpi_autism|Media Ditorium ─ AUTiSM Rainbow]]Β +    * [[rpi_nimbus|ππ’πŒππ”π’ π••π•–π”Ήπ•π•’π•Ÿπ•”]]Β 
-    * [[:rpi_epigen|Private Cellarium ─ EPiGEN Crystal]]Β +    * [[debian_common|β–  General info on Debian Linux]]Β 
-    * [[:rpi_nimbus|Webius Officium ─ NiMBUS deBlanc]]Β +    * [[deb_cicada|𝐂𝐒𝐂𝐀𝐃𝐀 π•Šπ•’π•©π• π•₯π•¦π•ž]]Β 
-    * [[:debian_common|β–  General info on Debian Linux]]Β +    * [[deb_mutism|πŒπ”π“π’π’πŒ π•„π•’π•˜π•Ÿπ•¦π•ž]] Β 
-    * [[:deb_mutism|Opus Imperium ─ MUTiSM Magnum]]Β +    * [[deb_gilead|𝐆𝐒𝐋𝐄𝐀𝐃 π”Έπ•£π•˜π•–π•Ÿπ•₯𝕒]] Β 
-    * [[:deb_gilead|Actu Periculum ─ GiLEAD Argenta]]Β +    * [[deb_symbio|π’π˜πŒππ’πŽ β„‚π• π•Ÿπ•’π•₯𝕦𝕀]]Β 
-    * [[:deb_debris|Finca LaDichium ─ DEBRiS Chrome]]+    * [[deb_tardis|𝐓𝐀𝐑𝐃𝐒𝐒 π•Šπ•‘π•’π•₯π•šπ•¦π•ž]] Β 
 +    * [[deb_debris|𝐃𝐄𝐁𝐑𝐒𝐒 β„‚π•™π•£π• π•žπ•–]] 
   * {{fa>windows?color=#0000A0}} Windows   * {{fa>windows?color=#0000A0}} Windows
     * [[:pc_common|β–  Common Works on Windows]]     * [[:pc_common|β–  Common Works on Windows]]
-    * [[:pc_mesonism|Primus Workstation ─ MESONiSM]]Β +    * [[PC_MESONiSM|πŒπ„π’πŽππ’π’πŒ]] Β 
-    * [[:pc_mesonium|Manibus Tablet ─ MESONiUM]]Β +    * [[PC_MESONiST|πŒπ„π’πŽππ’π’π“]]
-    * [[:pc_mesonist|Domumus Workstage ─ MESONiST]]Β +
-    * [[:pc_mesonity|Praevus Station ─ MESONiTY]]+
   * {{fa>android?color=#006400}} Android   * {{fa>android?color=#006400}} Android
     * [[:cell_common|β–  Common Stuffs on Androids]]     * [[:cell_common|β–  Common Stuffs on Androids]]
-    * [[:cell_epiaux|JΓΊne's Primus ─ EPiAUX 5X]]Β +    * [[CELL_EPiCON|π„ππ’π‚πŽπ π”½πŸ™]] Β 
-    * [[:cell_epihex|JΓΊne's Extentus ─ EPiHEX 6]]Β +    * [[CELL_EPiMER|π„ππ’πŒπ„π‘ 𝟑]] Β 
-    * [[:cell_epimer|JΓΊne's Maximus ─ EPiMER 5P]]Β +    * [[CELL_EPiLUX|𝐄𝐏𝐒𝐋𝐔𝐗 𝟟]]   Β 
-    * [[:cell_epinex|JΓΊne's Secondus ─ EPiNEX 5]]Β +    * [[CELL_EPiTAP|𝐄𝐏𝐒𝐓𝐀𝐏 πŸ™πŸ™]] Β 
-    * [[:cell_epitab|JΓΊne's Laminus - EPiTAB 7]]Β +    * [[CELL_EPiETA|𝐄𝐏𝐒𝐄𝐓𝐀 𝟜]] 
-    * [[:cell_epixus|JΓΊne's Tertius ─ EPiXUS 4]]+
 </nav> </nav>
  
Line 40: Line 38:
 /opt/scripts/  /opt/scripts/ 
 </code> </code>
-**MariaDB** ''per DATABASE'' 
-=== Backup MariaDB DATABASE ===  
- 
-<code bash>  
-/usr/bin/mysqldump --single-transaction -h localhost -u root -p[database_passwd] [database_name] > /..(path)../.backup/[database_name]-sqlbkp_`date +"%Y%m%d"`.bak 
-</code>  
  
 **update-motd**  **update-motd** 
Line 59: Line 51:
 </code> </code>
  
 +**MariaDB** ''per DATABASE''
 +=== Backup MariaDB DATABASE === 
 +
 +<code bash> 
 +/usr/bin/mysqldump --single-transaction -h localhost -u root -p[database_passwd] [database_name] > /..(path)../.backup/[database_name]-sqlbkp_`date +"%Y%m%d"`.bak
 +</code> 
  
 ----  ---- 
  
----- 
 === Backup using rsync command ===  === Backup using rsync command === 
  
Line 76: Line 73:
  
 ---- ----
 +=== 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 ==== 
  
Line 95: Line 99:
 ---- ----
  
 +==== Set hostnames ==== 
 +
 +<code bash> 
 +sudo hostname HOSTiD 
 +sudo hostnamectl HOSTiD 
 +</code> 
 +
 +Edit ''/etc/hostname'' with full domain name 
 +
 +<code bash> 
 +hostid.mydomain.com
 +</code> 
 +
 +----
 ==== Enable SSH ====  ==== Enable SSH ==== 
  
Line 500: Line 518:
 ---- ----
  
 +
 +
 +
 +===== Install Services ===== 
 +
 +==== Nextcloudβ„’ ====
 +
 +[[os_nextcloud|Nextcloud 101]] --- Nextcloud user's Guides
 +
 +----
  
 ===== Upgrade & Maintenance ===== ===== Upgrade & Maintenance =====
  • debian_common
  • Last modified: 2024/04/18 08:58
  • by JΓΊne Park