File: 002

package info (click to toggle)
python-lamson 1.0pre11-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 3,508 kB
  • ctags: 1,036
  • sloc: python: 5,772; xml: 177; makefile: 19
file content (13 lines) | stat: -rw-r--r-- 406 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# migration 002 -- need to grab the old librelist deploy
# copy the archives and database over

if [ -e ~/deploy/librelist ]
then
    logger_info "Restoring the old run queues and data"
    rsync -av ~/deploy/librelist/run .

    logger_info "Restoring the old archives data"
    rsync -av ~/deploy/librelist/app/data/archive app/data
else
    logger_info "No old librelist deploy, no need to run 002."
fi