Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: LANMonkey on July 26, 2010, 09:00:52 PM
-
I am trying to restore some individual files from my workstation backup and none of the filters seem to work. I am getting just blank windows. Maybe my filters are not working. I've tried '/root/' (quotes ommited) and still get blank windows. This is in 8.0beta4, but a working example should work in my server.
Could somebody feed me some working examples of a filter? I am experienced in Regular Expressions.
-
did you try 'root/*'?
AFAIR you don't need the / at the beginning
btw, if something isn't working as expected, please open a bug, thank you (and report here the bug id as reference)
-
Could you give me another couple of examples? Like a file name filter? I am very comfortable with regular expressions. I have no problems with them generally. I am trying to isolate a series of tables in my mysql directory, /var/lib/mysql/.
'var/*' works, but it gives the directory '/var/' and a bunch of files with 'var' in the name in the /home/e-smith/ directory. 'var/lib/*' doesn't work, it just gives blank windows.
-
'var/*' works, but it gives the directory '/var/' and a bunch of files with 'var' in the name in the /home/e-smith/ directory. 'var/lib/*' doesn't work, it just gives blank windows.
did you add manually /var/ dir to backup? it doesn't be part of the standard SME's backup
home/e-smith/db
home/e-smith/ssl.crt
home/e-smith/ssl.key
home/e-smith/ssl.pem
etc/e-smith/
etc/group
etc/gshadow
etc/passwd
etc/samba/secrets.tdb
etc/samba/smbpasswd
etc/shadow
etc/smbpasswd
etc/ssh
etc/sudoers
root
home/e-smith/files
btw, if you are trying to restore a single db, you should have its dump into home/e-smith/db
-
did you add manually /var/ dir to backup? it doesn't be part of the standard SME's backup
btw, if you are trying to restore a single db, you should have its dump into home/e-smith/db
No, I never thought to manually add anything. I just assumed that everything was backed up.
Well, if the dump is available, I suppose I could pick through that assuming that it was a recent dump. How often is the dump performed? Is this documented anywhere? This is good to know.
Thanks for replying so far, I consider the issue resolved.
-
No, I never thought to manually add anything. I just assumed that everything was backed up.
no, only the necessary files to restore all your data and your settings are backupped (the list of dirs/files is in my previous post)
Well, if the dump is available, I suppose I could pick through that assuming that it was a recent dump. How often is the dump performed?
every time backup runs.. it's part of the pre-backup event (take a look into /etc/e-smith/events/pre-backup for more info.. you can add your own actions there)
Is this documented anywhere? This is good to know.
Thanks for replying so far, I consider the issue resolved.
did you read the manuals? if it's not there or in the FAQ, please file a bug against documentation, thank you
-
LANMonkey
Adding var to your backup inclusions is not necessary as all mysql dbs are dumped as part of the pre backup event. If you do backup /var/lib/mysql you may get an incomplete backup, because if tables are in use they may not be fully backed up. That's why a dump is done immediately before all other files are backed up.
Read this
http://wiki.contribs.org/Backup_server_config
to help improve your understanding of backup and restore.
Keep in mind though the examples quoted are for one off specific backup and restore situations.
Ideally use either the built in backup with dar or one of the other supported backup & restore contribs.
-
OK, that covers it. Thanks again, all.
-
I managed to restore a single file from backup using a filter, "FileName*" and it worked fine. Took me a couple of minutes and saved my bacon too. It works great.