?
Solved

undoing a mv with *

Posted on 2003-10-24
3
Medium Priority
?
340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Assisted Solution

by:liddler
liddler earned 300 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 300 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 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