This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
$ip_old_munin_server = '192.168.0.200' | |
mkdir -p /backup/old | |
for filename in /var/lib/munin/*/*/*.rrd; do | |
if [ ! -f "/backup/old/$(basename "$filename")" ]; then | |
echo $filename | |
ssh $ip_old_munin_server "rrdtool dump $filename" | rrdtool restore - "/backup/old/$(basename "$filename")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$classLoader = require 'phar://doctrine-migrations.phar/vendor/autoload.php'; | |
$classLoader->addPsr4('DoctrineMigrations\\AbstractMigration\\', __DIR__.'/migrations/src/DoctrineMigrations/AbstractMigration'); | |
return new \Symfony\Component\Console\Helper\HelperSet(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@majestix:~# cat /etc/foreman/database.yml | |
Use Password from yaml to login: | |
root@majestix:~# psql -h localhost -U foreman -W | |
delete from host_status where type = 'HostStatus::ExecutionStatus'; |