USB OFFLINE: Site Copy
Jump to navigation
Jump to search
Teknik copy site
/dev/sdd2 458G 415G 20G 96% /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac /dev/sde2 117G 8,0G 103G 8% /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028
Skenario
- Source /dev/sdd2
- Destination /dev/sde2
Lakukan copy
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/var/www/html/moodle* /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/var/www/html/ &
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/var/www/html/kiwix* /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/var/www/html/ &
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/var/moodledata* /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/var/ &
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/var/lib/mysql/moodle* /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/var/lib/mysql/ &
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/home/onno/*sh /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/home/onno/ &
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/home/onno/*sh /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/home/onno/ &
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/home/offline/*sh /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/home/offline/ &
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/home/latihan/*sh /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/home/latihan/ &
cp -Rf /media/onno/159d56a1-8c5c-4eb9-8185-fb20f8e105ac/etc/rc.local /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/etc/ &
Ubah permission:
chmod -Rf 777 /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/var/www/html/moodle* &
chmod -Rf 777 /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/var/www/html/kiwix* &
chown -Rf www-data: /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/var/www/html/ &
Booting & perbaiki user / owner
chmod -Rf 777 /media/onno/229eebfa-97dd-4f2e-8ce0-fc4099dc8028/var/lib/mysql/moodle* &
chmod -Rf 777 /var/moodledata* &
chown -Rf www-data: /var/moodledata* &
chmod -Rf 777 /var/lib/mysql/moodle* &
chown -Rf mysql: /var/lib/mysql/moodle* &
rm /var/lib/mysql/ib_logfile*
Edit $CFG->root
vi /var/www/html/moodle/config.php