Re: Backup with mtree and rsync?

2013-01-08 Thread Lowell Gilbert
schu...@ime.usp.br writes: I have been wondering whether it is possible to create a backup system using mtree and rsync. Essentially, the user would create a mtree specification of the source directory and copy it over to the destination directory with rsync. Any changes in the destination

Re: Backup with mtree and rsync?

2013-01-08 Thread schultz
I don't see any way to do this directly. What you probably want to do is use find(1) to pick out the new files to check, and then merge the changes into the old mtree(8) spec. Not trivial, but the spec syntax is intended to be easy to parse, so it shouldn't be that hard either. What I am

Re: Backup with mtree and rsync?

2013-01-08 Thread Polytropon
On Tue, 08 Jan 2013 15:57:39 -0200, schu...@ime.usp.br wrote: It's possible that the mtree support in tar(8) might be able to do it, but it would probably be a lot slower. Wait, can tar be used to remove files? No (not directly, except overwriting directories with content), but cpdup can;

Re: Backup with mtree and rsync?

2013-01-08 Thread Ciprian Dorin Craciun
On Sat, Jan 5, 2013 at 8:12 PM, schu...@ime.usp.br wrote: I have been wondering whether it is possible to create a backup system using mtree and rsync. Essentially, the user would create a mtree specification of the source directory and copy it over to the destination directory with rsync.

Re: Backup with mtree and rsync?

2013-01-08 Thread schultz
I apparently reinvented the wheel. :-) Thanks for the link, it is indeed very inspiring. Quoting Ciprian Dorin Craciun ciprian.crac...@gmail.com: On Sat, Jan 5, 2013 at 8:12 PM, schu...@ime.usp.br wrote: I have been wondering whether it is possible to create a backup system using mtree and

Re: Backup with mtree and rsync?

2013-01-08 Thread schultz
No (not directly, except overwriting directories with content), but cpdup can; see man cpdup for details and inspiration. True, but cpdup is not part of the base system. ___ freebsd-questions@freebsd.org mailing list

Backup with mtree and rsync?

2013-01-05 Thread schultz
I have been wondering whether it is possible to create a backup system using mtree and rsync. Essentially, the user would create a mtree specification of the source directory and copy it over to the destination directory with rsync. Any changes in the destination could then be detected before