Skip to content

Instantly share code, notes, and snippets.

@tairov
Created July 24, 2013 09:23
Show Gist options
  • Save tairov/6069164 to your computer and use it in GitHub Desktop.
Save tairov/6069164 to your computer and use it in GitHub Desktop.
shell-script, backup, webdav, yandex.disk
#!/bin/bash
cd /home/cube/backups
for i in *.tar;
do
# username:password - имя пользователя и
# пароль к аккаунту Яндекса
curl -T ${i} --user username:password https://webdav.yandex.ru
rm ${i}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment