Koozali.org: home of the SME Server

easy way to back up files for recovery the server

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: easy way to back up files for recovery the server
« Reply #15 on: July 31, 2014, 12:28:05 PM »
mgb, your posts are useless to help you..

you keep saying "it doesn't work" or "error".

sorry but I personally can't help you

Offline mgb

  • ****
  • 558
  • +0/-0
Re: easy way to back up files for recovery the server
« Reply #16 on: July 31, 2014, 12:54:00 PM »
ok

1 I have performed a backup sme7.6
Procedure to create the backup on the server to be cloned

 
I copied the backup
copy to new server
New server SME9 64B
signal-event pre-restore
tar -C / -xzvf smeserver.tgz
# Performed without any problem
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
is ok

2- boot
 
Display
init: rcS main process ...
telinit: illegal runlevel: 7
init:rcS  post-stop process (818)...
is stop boot

Thanks all for helping
Skype yosii2009

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: easy way to back up files for recovery the server
« Reply #17 on: July 31, 2014, 01:45:53 PM »
please post here the exact content of /etc/include.txt and /etc/exclude.txt you used to backup your server

how big is your tgz file?

Offline mgb

  • ****
  • 558
  • +0/-0
Re: easy way to back up files for recovery the server
« Reply #18 on: July 31, 2014, 02:26:03 PM »
24.7 gb  smeserver.tgz

1
home/e-smith/files/ibays/*/files/*
home/e-smith/files/users/*/home/*

2
home/e-smith/
etc/e-smith/
etc/group
etc/gshadow
etc/passwd
etc/samba/secrets.tdb
etc/samba/smbpasswd
etc/shadow
etc/smbpasswd
etc/ssh
etc/sudoers
opt



Thanks all for helping
Skype yosii2009

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: easy way to back up files for recovery the server
« Reply #19 on: July 31, 2014, 02:37:49 PM »
are you aware that in this way you are excluding ALL emails/files/ibays' content?


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: easy way to back up files for recovery the server
« Reply #20 on: July 31, 2014, 02:43:58 PM »
mgb

It looks to me you have the file contents reversed, if you answered in the same order the question was asked.
Please read this again
http://wiki.contribs.org/Backup_server_config#Cloning_a_server_for_Test_purposes.2C_using_inclusion_.26_exclusion_files
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • ****
  • 558
  • +0/-0
Re: easy way to back up files for recovery the server
« Reply #21 on: August 03, 2014, 02:01:00 PM »
Hello, I'm backing up everything Folder separately - due to a large amount of files
  tar-zxvf example.tar.gz - it works well.

If you can backup only user passwords and email user - Example
Thanks for the help
Thanks all for helping
Skype yosii2009

Offline mgb

  • ****
  • 558
  • +0/-0
Re: easy way to back up files for recovery the server
« Reply #22 on: August 06, 2014, 11:36:49 AM »
help to find in smeserver.tgz
 DATABASE l lost
Thanks all for helping
Skype yosii2009

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: easy way to back up files for recovery the server
« Reply #23 on: August 06, 2014, 12:01:19 PM »
mgb

Unpack the file with the tar command
man tar
for specifics

databases are usually in
/var/lib/mysql/...

They should be in a dump file in
/home/e-smith/db
or is it
/home/e-smith/db/mysql
if the correct pre backup event was run on the server you were backing up.

Did you run the pre restore event on the new server, you need to do this to delete old copies of previous database dumps.

PS

Quote
If you can backup only user passwords and email user - Example

You cannot easily backup just that data, it is scattered throughout many files on the server & all of those have to be restored as an intact set as they cross correlate to each other with system IDs etc.
That's why you should (MUST) follow the standard backup & restore procedures & file inclusions as outlined in the Backup server config Howto
http://wiki.contribs.org/Backup_server_config#Standard_backup_.26_restore_inclusions

and this here
http://wiki.contribs.org/Backup_server_config#Manually_transferring_configuration_information
is the correct procedure to use to do a full backup & restore manually.

Deviation from these (as you are doing) will cause loss of data & loss of data entries & loss of mysql databases & tables & other information, users, ibays etc.

You have been WARNED.
« Last Edit: August 06, 2014, 12:09:45 PM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.