I run a Debian 7 server configured according to the perfect server with nginx tut for Debian 7. For backups I initially followed this tutorial and its served me well: https://www.howtoforge.com/creating-encrypted-ftp-backups-with-duplicity-and-duply-on-debian-squeeze Now however, one of my 2 HDs has failed and apparently Strato doesn't replace HDs they replace the whole server and I need to restore the old server with duply/duplicity from the FTP backups space they offer to the new server. my relevant duply config is: conf Code: # base directory to backup SOURCE='/' exclude Code: **/cache **/cache/supercache **/image_cache **/Maildir/.spam **/Maildir/.Trash **/rrd **/tmp **/web/serverstats /dev /initrd /lost+found /media /mnt /opt /proc /root/btsync /srv /sys /tmp /usr/share/man /var/backups /var/cache /var/empty /var/lib/apache2 /var/lib/dcc /var/lib/mysql /var/lib/named/dev /var/lib/php4 /var/lib/php5 /var/lock /var/log /var/run /var/spool /var/tmp /var/webmin Am I excluding anything vital? What would my steps be to fully restore? I assume this and please correct me where needed: install bare minimal Debian on new server copy over my duply config so passwords and gpg keys and all will be present on the new system duply restore / 1D (man says: duply restore <target_path> [<age>]) - will this restore and overwrite my live system? change the old hostname inside /etc/hostname and inside postfix config like this: https://www.howtoforge.com/community/threads/ispconfig3-changing-hostname.58771/ WHERE ELSE NEED I CHANGE THE HOSTNAME? I'll try a Code: grep -R -i 'old.hostname.tld' /etc/ should work, right? I always wanted to replace my hostname that Strato delivers with one of my own domains which I own and am not using for anything else. Any tutorials out there? do I have to use the top-domain or will a subdomain suffice? i.e. do I need mydomain.com or can/should I use say server1.mydomain.com? I then proceed to change all my DNS entries to the new IP THANKS FOR EACH AND ANY FEEDBACK ON THIS.
Hm, nobody ever restored a complete server with duply? Anyway, apparently STRATO now has offered to replace the failed hard drive out of courtesy so I was googling how to replace a failed hard drive in a mirrored software raid and found this how-to: https://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array But it looks like my array isn't damaged even though smartctl reports it will fail very, very soon: Code: SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE 5 Reallocated_Sector_Ct PO--CK 001 001 005 NOW 796 Code: cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sdb3[0] sda3[1] 1948392384 blocks [2/2] [UU] [==>..................] resync = 10.3% (200765440/1948392384) finish=7547.6min speed=3858K/sec md0 : active raid1 sdb1[0] sda1[1] 1023936 blocks [2/2] [UU] unused devices: <none> So I was wondering what would the procedure be if the HD simply failed and was replaced before I had the chance to first removing the faulty drive via: Code: mdadm --manage /dev/md1 --fail /dev/sda3 and mdadm --manage /dev/md0 --fail /dev/sda1