imap & rsync - doing backup & restore


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users imap & rsync - doing backup & restore
# 1  
Old 01-22-2010
imap & rsync - doing backup & restore

Hi ALL...

I have an IMAP server & I have setup rsync to copy all mailboxes (MailDir) to a remote backup machine.
rsync is working fine and is copying my files.

I need some advice on how to restore a particular mailbox when a user makes a request
assuming she has has deleted an important email.

my rsync command & options are :

Code:
rsync -avt --log-file=$log_file /home/vmail/ 10.0.0.x:/home/vmail

Thanks
CoolAtt
# 2  
Old 01-28-2010
Have you tried:

Code:
rsync -avt --log-file=$log_file 10.0.0.x:/home/vmail/<somesubdir> /home/vmail/<somesubdir>

I don't know what the /home/vmail structure is, but I guess this is it.

However I doubt the solution you've set up will be good for reverting deleted emails. The change (file deletion) will propagate to the backup after each sync.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. Shell Programming and Scripting

Rsync exclude & include?

hi I have a few folders and a few files , for example Directory A B C D E Files 1 2 3 4 5 I want B directory and "2" File that does not sync But other directories and file sync What is the solution ? Is there a way to sync time is under one minute? os centos 6.8 thanks... (5 Replies)
Discussion started by: mnnn
5 Replies

3. Shell Programming and Scripting

Backup & restore Gnome Desktop and all settings in Gnome

Hi I'm looking for scripts to backup & restore Gnome Desktop and all settings in Gnome. (0 Replies)
Discussion started by: ccc
0 Replies

4. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

5. Shell Programming and Scripting

replace & with &amp; xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

6. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

7. AIX

backup & restore a volume group

Dear All, I would like to ask about saving & restoring a user defined volume group. i have a user defined volume group, named as datavg. i want to save it & to restore it into different size of physical volume. currently, datavg consist of 4 pv, three fisrt pv size are 100GB & one pv size is... (1 Reply)
Discussion started by: donybangetgitu
1 Replies

8. SCO

SCO 6. Backup & Restore from USB

Finaly got usb working on sco6. If anyone need help with that just ask. My final goal is to able to do a complete system backup/restore to/from usb. The problems I need help with 1. Can't cpio to usb device. Getting an error message device not found 2. When booted from sco6 emergency... (3 Replies)
Discussion started by: miles556
3 Replies

9. Solaris

Error using usfdump for backup & restore ?

Hello buddy, I used usfbackup command but error after full backup Solaris 5.5.1 /dev/c0t3d0s0 / /dev/c0t3d0s6 /usr I get error when restart after complete full backup Can't load the root file system Type 'go' to resume ***FULL MY STORY*** ... (1 Reply)
Discussion started by: posky
1 Replies

10. HP-UX

hp unix backup&restore

Dear frnds, i am going to use hp-ux11i first time, actually migrated from true64unix(digital), Now confused with the backup and restore procedures, i was using vdump and vrestore in that which was really much comfortable.could you suggest which is best type backup(similar to vdump and vrestore)... (8 Replies)
Discussion started by: jestinabel
8 Replies
Login or Register to Ask a Question