Results 1 to 4 of 4

Thread: [SOLVED] minimal backup and restore

  1. #1
    Join Date
    Jun 2008
    Beans
    15

    [SOLVED] minimal backup and restore

    Hi,

    I am currently building a server for a small company. Everything so far is working, apart from system backup and restore (user data is backupped separately).

    I thought I could do the following:

    1. do a daily backup of /etc
    2. backup the list of installed packages

    for a restore:

    1. install ubuntu server from cd
    2. update all packages
    3. install packages from the list created above
    4. restore /etc

    Of course I did a test before going life. It seems to work, mostly. What apparently isn't restored are the user accounts, that is, the Linux users are actually restored and after restoring their home directories as well, I could log in fine. The samba users are also restored, but the passwords seem to be missing.

    So what did I forget to backup/restore? Or do I really have to do a full backup/restore of the system (minus data partitions)?

    twm

  2. #2
    Join Date
    Feb 2007
    Beans
    106
    Distro
    Ubuntu 5.10

    Re: minimal backup and restore

    I assume you are using rsync? I believe that the samba password file is in /usr/local/samba/ somewhere. Check your smb.conf and see what directory it's located in, include it in your rsync and then try it again.
    Last edited by tcpip4lyfe; June 19th, 2008 at 02:28 PM.

  3. #3
    Join Date
    Jun 2008
    Beans
    15

    Re: minimal backup and restore

    Quote Originally Posted by tcpip4lyfe View Post
    I assume you are using rsync? I believe that the samba password file is in /usr/local/samba/ somewhere. Check your smb.conf and see what directory it's located in, include it in your rsync and then try it again.
    I am using dirvish for the backup and tried cp -R for the restore.

    smb.conf is located in /etc/samba which is already included in the backup as well as in the restore.

    twm

  4. #4
    Join Date
    Jun 2008
    Beans
    15

    Re: minimal backup and restore

    Ok, apparently some of the Samba data is not in /etc/samba, as I expected, but in /var/lib/samba. I guess it is a good idea to not only backup/restore /etc but also /var/lib.

    I haven't tried it yet, but will tomorrow.

    [edit]

    It seems to work. I have included /var/lib/samba in the restore and now at least the users and shares are restored correctly.

    I'll still have to figure out whether any other of the /var/lib directories are necessary.

    twm
    Last edited by dummzeuch; June 21st, 2008 at 09:27 AM. Reason: tested my approach

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •