Solved

undoing a mv with *

Posted on 2003-10-24
3
330 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
why should double free() crash? 7 31
check failing on yum update 5 29
busybox bash/ash - bash -x | grep 19 117
Use Powershell script to ftp 10 79
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…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

929 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now