123456789101112131415161718192021222324252627282930 |
- SCRIPTS= compact_backups.sh monthly.local backup-strategy.sh \
- fullftpdump remove_nonfullbackups.sh
- INSTALL= /usr/bin/install
- MKDIR= /bin/mkdir
- install: check_uid $(SCRIPTS)
- $(MKDIR) -p /root/bin
- $(INSTALL) -C -g bin -m 750 -o root -p compact_backups.sh /root/bin/
- $(INSTALL) -C -g bin -m 750 -o root -p fullftpdump /root/bin/
- $(INSTALL) -C -g bin -m 750 -o root -p backup-strategy.sh /root/bin/
- $(INSTALL) -C -g bin -m 750 -o root -p remove_nonfullbackups.sh /root/bin/
- $(INSTALL) -C -g wheel -m 644 -o root -p monthly.local /etc/
- @test -e /root/.dumppartitions \
- || echo "No .dumppartitions file installed in /root/!"
- check_uid:
- @if [ `id -u` -eq 0 ]; then \
- true; \
- else \
- echo "Need uid 0 for install!"; \
- false; \
- fi
- ask_for_server:
- @echo -n "Server: "
- @read SERVER
- @echo "machine ${SERVER}"
-
|