Re: Undelete for UFS2?
Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? maybe something like: mkdir ~/.trash alias rm 'mv -iv \!* ~/.trash/' The problem with that solution is that when you move to a new system, you assume that your files will go to trash and then OH NO Better to do something like: alias del 'mv -iv \!* ~/.trash/' and get in the habit of using 'del' Or maybe a script called 'del' in your path that looks like (I use this one): #!/bin/sh DATESUFFIX=`date -u +%Y-%m-%d--%H.%M.%S` # All files deleted at the same time need the same serial LOCATION=${HOME}/.Trash if [ \! -d ${LOCATION} ]; then echo Creating $LOCATION...>&2 mkdir ${LOCATION} chmod 700 ${LOCATION} fi if [ \! -z $SUDO_USER ]; then THE_USER=$SUDO_USER else THE_USER=$USER fi for each in "$@"; do if [ -e "$each" ]; then NEWFILE=${LOCATION}/`echo "$each" | tr / _`.${DATESUFFIX} echo -n $each '->' ${NEWFILE} mv "$each" "${NEWFILE}" chown -R $THE_USER "${NEWFILE}" echo . else echo \"$each\" was not found >&2 fi done if [ \! -z "$PS1" ] || [ \! -z "$PROMPT" ]; then printf "Your trash can has %s and %s inodes\n" `du -hcd0 $LOCATION 2>/dev/null | tail -n 1 | awk '{print $1}'` `find $LOCATION| wc -l` fi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
It most certainly is. If you are using vim, them you can set patchmode This will keep the original version of a file(for example rc.conf.org) :help patchmode will tell you more. This saved me quite a few times after I screwed up a configuration file and didn't remember how to get it back again... Martin Tournoij wrote: Martin, Snapshots really aren't that complicated, take a look at the handbook entry: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html Quite handy, didn't even know this existed for FBSD. Started using it right away, with the freebsd-snapshot port. Always good to have an extra backup against /etc changes that didn't work out THAT well afterall. :) /Robin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
Martin Tournoij wrote: Martin, Snapshots really aren't that complicated, take a look at the handbook entry: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html Quite handy, didn't even know this existed for FBSD. Started using it right away, with the freebsd-snapshot port. Always good to have an extra backup against /etc changes that didn't work out THAT well afterall. :) /Robin -- Robin Vley F/X Services Managed Hosting http://www.fx-services.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
On Aug 12, 2006, at 1:11 PM, Martin Tournoij wrote: On Sat, 12 Aug 2006 18:29:20 +0200, Chad Leigh -- Shire.Net LLC <[EMAIL PROTECTED]> wrote: On Aug 12, 2006, at 7:26 AM, Martin Tournoij wrote: On Sat, 12 Aug 2006 12:13:49 +0200, Andreas Davour <[EMAIL PROTECTED]> wrote: On Sat, 12 Aug 2006, Daniel Gerzo wrote: Hello Chris, Saturday, August 12, 2006, 3:48:28 AM, you wrote: Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? maybe something like: mkdir ~/.trash alias rm 'mv -iv \!* ~/.trash/' You don't have a handy solution for the lack of file version numbering as well? That's something I'd love to see in ext4 or UFS3! /andreas Snapshots? Isn't a snapshot a filesystem wide thing? Sounds to complicated for file-level versioning without something on top of it like the new Apple Time Machine business I agree it would be nice to have file versioning in the FS like VMS does. Chad Yeah, snapshots are FS-wide. If you make one once a day it's almost the same as a FS VMS feature. No, VM creates a new version of a file for each edit. So you would have to create a snapshot after each edit, so you only get 20 edits. And using the versioned files is not easy or intuitive since you have to play around with a new "FS" for each one, the snapshot. Chad ex-DECcie You can have a total of 20 snapshots, so that's 20 days... Snapshots really aren't that complicated, take a look at the handbook entry: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ snapshots.html Basicly it's just: # mknap_ffs /usr 20060812 And you have a snapshot of /usr named 20060812 Also, there's a port which offers some usefull scripts sysutils/freebsd-snapshot --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
On Sat, 12 Aug 2006 18:29:20 +0200, Chad Leigh -- Shire.Net LLC <[EMAIL PROTECTED]> wrote: On Aug 12, 2006, at 7:26 AM, Martin Tournoij wrote: On Sat, 12 Aug 2006 12:13:49 +0200, Andreas Davour <[EMAIL PROTECTED]> wrote: On Sat, 12 Aug 2006, Daniel Gerzo wrote: Hello Chris, Saturday, August 12, 2006, 3:48:28 AM, you wrote: Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? maybe something like: mkdir ~/.trash alias rm 'mv -iv \!* ~/.trash/' You don't have a handy solution for the lack of file version numbering as well? That's something I'd love to see in ext4 or UFS3! /andreas Snapshots? Isn't a snapshot a filesystem wide thing? Sounds to complicated for file-level versioning without something on top of it like the new Apple Time Machine business I agree it would be nice to have file versioning in the FS like VMS does. Chad Yeah, snapshots are FS-wide. If you make one once a day it's almost the same as a FS VMS feature. You can have a total of 20 snapshots, so that's 20 days... Snapshots really aren't that complicated, take a look at the handbook entry: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html Basicly it's just: # mknap_ffs /usr 20060812 And you have a snapshot of /usr named 20060812 Also, there's a port which offers some usefull scripts sysutils/freebsd-snapshot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
On Aug 12, 2006, at 7:26 AM, Martin Tournoij wrote: On Sat, 12 Aug 2006 12:13:49 +0200, Andreas Davour <[EMAIL PROTECTED]> wrote: On Sat, 12 Aug 2006, Daniel Gerzo wrote: Hello Chris, Saturday, August 12, 2006, 3:48:28 AM, you wrote: Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? maybe something like: mkdir ~/.trash alias rm 'mv -iv \!* ~/.trash/' You don't have a handy solution for the lack of file version numbering as well? That's something I'd love to see in ext4 or UFS3! /andreas Snapshots? Isn't a snapshot a filesystem wide thing? Sounds to complicated for file-level versioning without something on top of it like the new Apple Time Machine business I agree it would be nice to have file versioning in the FS like VMS does. Chad --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
On Sat, 12 Aug 2006 12:13:49 +0200, Andreas Davour <[EMAIL PROTECTED]> wrote: On Sat, 12 Aug 2006, Daniel Gerzo wrote: Hello Chris, Saturday, August 12, 2006, 3:48:28 AM, you wrote: Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? maybe something like: mkdir ~/.trash alias rm 'mv -iv \!* ~/.trash/' You don't have a handy solution for the lack of file version numbering as well? That's something I'd love to see in ext4 or UFS3! /andreas Snapshots? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
Hello Chris, Saturday, August 12, 2006, 3:48:28 AM, you wrote: > Just thought I'd ask though I'm pretty sure the answer is no. Nothing > important just my mailbox files for mailing lists including this one. > All my email addresses look alike and I was foulish enough to copy and > paste. Why oh why I didn't add the backup cronjob I don't know... > Is there anyway to get spools for this list? It's nice being able to > search messages locally. > Lastly surely someone has implemented a trash folder mechanism for > freebsd... what is it called so I can look up how to install it? maybe something like: mkdir ~/.trash alias rm 'mv -iv \!* ~/.trash/' -- Best regards, Danielmailto:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
On 8/12/06, Chris <[EMAIL PROTECTED]> wrote: Just thought I'd ask though I'm pretty sure the answer is no. Nothing important just my mailbox files for mailing lists including this one. All my email addresses look alike and I was foulish enough to copy and paste. Why oh why I didn't add the backup cronjob I don't know... Nope. Some forensic solutions are available though. Is there anyway to get spools for this list? It's nice being able to search messages locally. http://lists.freebsd.org/mailman/listinfo http://lists.freebsd.org/pipermail/freebsd-questions/ Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? Nope. Snapshots are there, though. See mount(8) for more. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Undelete for UFS2?
Just thought I'd ask though I'm pretty sure the answer is no. Nothing important just my mailbox files for mailing lists including this one. All my email addresses look alike and I was foulish enough to copy and paste. Why oh why I didn't add the backup cronjob I don't know... Is there anyway to get spools for this list? It's nice being able to search messages locally. Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"