Thread Previous • Date Previous • Date Next • Thread Next |
Jon Bendtsen wrote:
On Tue, Feb 25, 2003 at 05:31:04PM +0100, Mikael Rasmussen wrote:"Frank Vestergaard Pedersen" <sslug@xxxxxxxxxxxx> Wrote:cp -r [option ?] /var/lib/mysql /mnt/backup/$DATO/var/lib/mysqlJeg tror det er 'cp -rp /var/lib/mysql /mnt/backup/$DATO/' du er ude efter.Måske rsync er en bedre ide ?
Eller måske "man cp"? : (Thus, if /a is a directory, then `cp -r /a /b' will copy /a to /b/a and /a/x to /b/a/x in case a directory /b existed already, but it will copy /a to /b and /a/x to /b/x if there was no /b beforehand, while it will fail in case there was an ordinary file /b.) MVH -- Jon Svejgaard ==================================================================== | ACE - UNIX/Linux Consultancy | Hjorthoejvej 2 / DK-4291 Ruds Vedby mail: jon@xxxxxx | DENMARK http://www.ace.dk | +45 5826 1799 / +45 4052 0799 ====================================================================
Thread Previous • Date Previous • Date Next • Thread Next |