Changes

From SME Server
Jump to navigationJump to search
1,147 bytes added ,  11:30, 2 July 2016
Line 219: Line 219:  
  "cat >> /root/.ssh/authorized_keys2"
 
  "cat >> /root/.ssh/authorized_keys2"
 
  (confirm the host key)
 
  (confirm the host key)
 +
 +
 +
====Restore or migrate a smeserver====
 +
If you simply want to restore a few files or a whole directory you just have to use the web interface, and within a few clicks you are done, with your files restored directly in place, or aside if you want.
 +
 +
 +
This will cover the opportunity to use this full or almost full backup to use the restoration option while installing a new manager, which will help you to migrate between versions.
 +
 +
* change '''SERVERNAME''' with the actual name of your backup
 +
* change '''-n 0''' with the number of the most uptodate fullbackup you want to use.
 +
 +
su - backuppc -s /bin/sh
 +
cd ~
 +
mkdir myrestore
 +
cd myrestore/
 +
/usr/share/BackupPC/bin/BackupPC_tarCreate  -h SERVERNAME -n 0 -s / / >smeserver.tar
 +
 +
then you have just to copy this on a USB disk, or alternatively copy it in a virtual disk if your SME will be virtualized and can not plug any USB device
 +
mkdir /mnt/MyDisk
 +
mount /dev/disk/by-label/MyDisk /mnt/MyDisk
 +
mv /var/lib/BackupPC/myrestore/smeserver.tar /mnt/MyDisk/
 +
umount /mnt/MyDisk/
 +
 +
# install SME server
 +
# reboot
 +
# plug your drive when you see the screen asking for restoration
 +
 +
and you are done.
    
====Backup a Linux host through rsync====
 
====Backup a Linux host through rsync====
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu