Commit 13f12179 authored by Seblu's avatar Seblu
Browse files

Add a debug config

parent c3605597
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -17,6 +17,15 @@ makepkg -i
systemctl enable archive.timer archive-hardlink.timer
```

Debug
-----
```
cd archivetools
export DEBUG=1
export ARCHIVE_CONFIG=archive.conf.test
./archive.sh
```

Dependencies
------------
- [Bash](http://www.gnu.org/software/bash/bash.html)

archive.conf.test

0 → 100644
+48 −0
Original line number Diff line number Diff line
# vim:set sw=2 ts=2 ft=sh et:

# Archlinux remote rsync server
ARCHIVE_RSYNC='rsync://polymorf.fr/archlinux/'

# Archive base directory
ARCHIVE_DIR="$PWD/archive-root"

# Archive User and Group
ARCHIVE_USER=$(id -u -n)
ARCHIVE_GROUP=$(id -g -n)

# Packages extension
PKGEXT='.pkg.tar.xz'
PKGSIG="$PKGEXT.sig"

# Umask used when archiving
UMASK=022

##############################################################################
#### Repositories
##############################################################################

# Enable repositories archiving
ARCHIVE_REPO=1

# Enable daily repo trees
# This offer daily, weekly, monthly, yearly snapshot trees
REPO_DAYLY=1

# Enable packages tree
# Create a dedicated tree with packages sorted by name
REPO_PACKAGES=1

# Enable repository package index
# Needed by agetpkg to list packages
REPO_PACKAGES_INDEX=1

# Search in all repository snapshop. This is slow.
# Better option is to let it to 0 to look only in the last snapshot
REPO_PACKAGES_FULL_SEARCH=0

##############################################################################
#### ISO
##############################################################################

# Enable ISO archiving
ARCHIVE_ISO=1
 No newline at end of file