Hello again, Sorry I had yesterday a really strange behavior with my webmail. Anyway, here again my post now in the correct thread.
---------------------- Hello together, I was watching also this thread, due to my plans to take bacula in a productive system. Anyway the behaviour of bacula on moved files seems to be odd. I've written a small script to analyse the situation on a debian sarge. Here we go... ------------- begin: my test script ----------------- echo "###############################" echo "creating the test folders" date CMD='mkdir a' echo $CMD $CMD sleep 1 date CMD='mkdir b' echo $CMD $CMD sleep 1 echo "creating the test files" date CMD='touch a/dummy_a' echo $CMD $CMD sleep 1 date CMD='touch b/dummy_b' echo $CMD $CMD echo echo "###############################" echo "###############################" echo "dumping the file ctimes" CMD='ls --full-time -lcR' echo $CMD $CMD echo echo "###############################" echo "dumping the file atimes" CMD='ls --full-time -luR' echo $CMD $CMD echo echo "###############################" echo "dumping the file mtimes" CMD='ls --full-time -lR' echo $CMD $CMD echo echo echo "###############################" echo "###############################" echo "moving dummy_a to b" sleep 3 date CMD='mv a/dummy_a b/' echo $CMD $CMD echo echo "###############################" echo "dumping the file ctimes" CMD='ls --full-time -lcR' echo $CMD $CMD echo echo "###############################" echo "dumping the file atimes" CMD='ls --full-time -luR' echo $CMD $CMD echo echo "###############################" echo "dumping the file mtimes" CMD='ls --full-time -lR' echo $CMD $CMD read rm -R a rm -R b ------------- end: my test script ----------------- and my result was: ------------- begin: test script result ----------------- ############################### creating the test folders Tue Jul 26 22:16:06 CEST 2005 mkdir a Tue Jul 26 22:16:07 CEST 2005 mkdir b creating the test files Tue Jul 26 22:16:08 CEST 2005 touch a/dummy_a Tue Jul 26 22:16:09 CEST 2005 touch b/dummy_b ############################### ############################### dumping the file ctimes ls --full-time -lcR .: total 20 drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:08.000000000 +0200 a drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:09.000000000 +0200 b -rw-r--r-- 1 dpalic dpalic 359 2005-07-26 22:16:09.000000000 +0200 out.txt -rw-r--r-- 1 dpalic dpalic 1203 2005-07-26 22:16:00.000000000 +0200 test.sh -rw-r--r-- 1 dpalic dpalic 836 2005-07-26 22:16:00.000000000 +0200 test.sh~ ./a: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:08.000000000 +0200 dummy_a ./b: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:09.000000000 +0200 dummy_b ############################### dumping the file atimes ls --full-time -luR .: total 20 drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:09.000000000 +0200 a drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:09.000000000 +0200 b -rw-r--r-- 1 dpalic dpalic 998 2005-07-26 21:59:14.000000000 +0200 out.txt -rw-r--r-- 1 dpalic dpalic 1203 2005-07-26 22:16:09.000000000 +0200 test.sh -rw-r--r-- 1 dpalic dpalic 836 2005-07-26 22:16:05.000000000 +0200 test.sh~ ./a: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:08.000000000 +0200 dummy_a ./b: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:09.000000000 +0200 dummy_b ############################### dumping the file mtimes ls --full-time -lR .: total 20 drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:08.000000000 +0200 a drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:09.000000000 +0200 b -rw-r--r-- 1 dpalic dpalic 1636 2005-07-26 22:16:09.000000000 +0200 out.txt -rw-r--r-- 1 dpalic dpalic 1203 2005-07-26 22:16:00.000000000 +0200 test.sh -rw-r--r-- 1 dpalic dpalic 836 2005-07-26 21:58:13.000000000 +0200 test.sh~ ./a: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:08.000000000 +0200 dummy_a ./b: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:09.000000000 +0200 dummy_b ############################### ############################### moving dummy_a to b Tue Jul 26 22:16:12 CEST 2005 mv a/dummy_a b/ ############################### dumping the file ctimes ls --full-time -lcR .: total 20 drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:12.000000000 +0200 a drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:12.000000000 +0200 b -rw-r--r-- 1 dpalic dpalic 2407 2005-07-26 22:16:12.000000000 +0200 out.txt -rw-r--r-- 1 dpalic dpalic 1203 2005-07-26 22:16:00.000000000 +0200 test.sh -rw-r--r-- 1 dpalic dpalic 836 2005-07-26 22:16:00.000000000 +0200 test.sh~ ./a: total 0 ./b: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:12.000000000 +0200 dummy_a -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:09.000000000 +0200 dummy_b ############################### dumping the file atimes ls --full-time -luR .: total 20 drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:12.000000000 +0200 a drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:12.000000000 +0200 b -rw-r--r-- 1 dpalic dpalic 3046 2005-07-26 22:16:10.000000000 +0200 out.txt -rw-r--r-- 1 dpalic dpalic 1203 2005-07-26 22:16:12.000000000 +0200 test.sh -rw-r--r-- 1 dpalic dpalic 836 2005-07-26 22:16:05.000000000 +0200 test.sh~ ./a: total 0 ./b: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:08.000000000 +0200 dummy_a -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:09.000000000 +0200 dummy_b ############################### dumping the file mtimes ls --full-time -lR .: total 20 drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:12.000000000 +0200 a drwxr-xr-x 2 dpalic dpalic 4096 2005-07-26 22:16:12.000000000 +0200 b -rw-r--r-- 1 dpalic dpalic 3684 2005-07-26 22:16:12.000000000 +0200 out.txt -rw-r--r-- 1 dpalic dpalic 1203 2005-07-26 22:16:00.000000000 +0200 test.sh -rw-r--r-- 1 dpalic dpalic 836 2005-07-26 21:58:13.000000000 +0200 test.sh~ ./a: total 0 ./b: total 0 -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:08.000000000 +0200 dummy_a -rw-r--r-- 1 dpalic dpalic 0 2005-07-26 22:16:09.000000000 +0200 dummy_b ------------- end: test script result ----------------- Maybe this helps to analyse the problem. With the result of my scripts the ctime seems to be the only one, which is modified on moved. Anyway, maybe I've missunderstood the definition of atime, ctime and mtime. atime=access-time ctime=create-time or change-time??? mtime=modify-time Could someone tell me what is the correct definition of atime/ctime/mtime? best regards, Darko ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users