Project

General

Profile

Paste
Download (381 Bytes) Statistics
| Branch: | Revision:

root / bin / flush-individual-databases-backups.sh @ 15ed27d8

1
#!/bin/sh
2

    
3
. /home/assos/bin/scripts-config.sh
4

    
5
# ARGS: manual or auto, Drupal version
6

    
7
cd "${dir_individual_backup}/$1/$2"
8

    
9
for dir in $(ls) ; do
10
    cd "${dir}"
11
    if [ "$1" = 'auto' ] ; then
12
        flush-files.sh -n "${db_individual_auto_backup_number}" -m "${email_multi_assos}"
13
    else
14
        flush-files.sh -n "${db_individual_manual_backup_number}"
15
    fi
16
    cd -
17
done