Skip to content

Instantly share code, notes, and snippets.

View Gigabiter's full-sized avatar

Gigabiter Gigabiter

View GitHub Profile
#!/bin/bash
string1=$1
string2=$(du -s $1 | awk '{print($1)}')
maxSize=$2
echo "Размер дирктории $string2"
if (("$string2" > "$maxSize"))
then
echo "Удаляем папку $string1"
#!/bin/sh
DB_USER="name"
DB_PASS="password"
DB_BASE="databese"
CLOUD_USER="webdav_user"
CLOUD_PASS="webdav_password"
MOUNTH=$(date +"%Y-%m")
CLOUD_SERVER="https://webdav.yandex.ru/"
NUM_WEEK=$(date +"%V")
NUM_DAY=$(date +"%u")