Outils pour utilisateurs

Outils du site


makefile
# dump niveau 0  +  sauvegarde des partitions

all: chdir remove_archive archive dump remove_archive crontabs

chdir:
      cd /sauvegarde/www.chepi.fr

remove_archive:
      test -d old && rm -rf old ; :

archive:
      mkdir -p old
      touch $$(hostname| cut -f1 -d .)
      mv $$(hostname| cut -f1 -d .)* old/ ; :
      chmod o-rwx old
dump:
      ./dump.sh

crontabs:
      crontab -u pit -l    > .crontab.pit.www.chepi.fr
      crontab -u pierre -l > .crontab.pierre.www.chepi.fr
      crontab -u root -l   > .crontab.root.www.chepi.fr
      chmod o-rwx .crontab*
# end
makefile.txt · Dernière modification: 2022/02/18 18:20 (modification externe)