Solved

undoing a mv with *

Posted on 2003-10-24
3
332 Views
Last Modified: 2006-11-17

I followed some instructions for installing a spam filter that didn't work out.

I can undo most of what has been done ok, but I am not sure how to undo this:

mv /var/spool/mqueue/q*/* /var/spool/mqueue

because I don't know what role the *'s play.  

Would this have put all my users mail into one pile, or can I somehow undo it and recover things intact?

Thanks,

Chris
0
Comment
Question by:ChrisAndrews
3 Comments
 
LVL 18

Assisted Solution

by:liddler
liddler earned 75 total points
ID: 9614414
Chris,
Afraid not, unless you've got backups.
All mails from sundirectories /var/spool/mqueue/q...  will have moved into the parent directory
0
 
LVL 4

Accepted Solution

by:
oumer earned 75 total points
ID: 9614504
say you have directories names q1 and q2 under mqueue directory, and there are files f1,f2,f3 in q1 and f3,f4,f5 in q2
So your command is translated like in pseudocode

mv [q1/f1 q1/f2 q1/f3 q2/f3 q2/f4 q1/f5] into mqueue dir

so what you will have finally under mqueue is f1, f2, f3 (one of them overwrites the other, depending on which one is called first, I am not sure, but most probably the f3 in q2 will overwrite the f3 copied from q1), f4 and f5.

In short, you will loose the directory information(the q* dirs) and you will just have files under mqueue, possibliy some overwriting the others depending whether there are files with the same name.

0
 

Author Comment

by:ChrisAndrews
ID: 9615663

Thanks, I will pursue this from another angle then,

Chris
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IPtables not running - RHEL7 64bit 5 246
Identify Linux loader 67 181
Enhance Shell script so that it start up processes with limited RAM & CPU consumption 14 148
Problem to run file 9 126
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question