[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cloning a debian system



> > dpkg --get-selections >> packages
> >
> > and on the new machine
> >
> > cat packages | dpkg --set-selections
>
> Hooray for the useless invocation of cat! =) Why not this one?
>
> dpkg --get-selections | cat > packages?
>
> Personally, I like this:
>
> dpkg --get-selections | ssh new-machine dpkg --set-selections
>
Very interesting. For backing up purposes, can this be used  to "restore" your 
machine to a prior state based on the "packages" file (down to reinstalling 
the same versions of the packages, and removing any new ones).




Reply to: