Add echo statements for readability
This commit is contained in:
parent
cb849cae2e
commit
6c63d02746
3
yams
3
yams
@ -121,6 +121,7 @@ fi
|
|||||||
if [ "$option" == "backup" ]; then
|
if [ "$option" == "backup" ]; then
|
||||||
echo "Stopping YAMS services..."
|
echo "Stopping YAMS services..."
|
||||||
$dc stop > /dev/null 2>&1
|
$dc stop > /dev/null 2>&1
|
||||||
|
echo
|
||||||
|
|
||||||
echo "Backing up YAMS to $destination..."
|
echo "Backing up YAMS to $destination..."
|
||||||
echo "This may take a while depending on the size of your installation."
|
echo "This may take a while depending on the size of your installation."
|
||||||
@ -132,11 +133,13 @@ if [ "$option" == "backup" ]; then
|
|||||||
cp $(which yams) $install_directory
|
cp $(which yams) $install_directory
|
||||||
tar --exclude='transcoding-temp' -caf "$backup_file" -C "$install_directory" .
|
tar --exclude='transcoding-temp' -caf "$backup_file" -C "$install_directory" .
|
||||||
|
|
||||||
|
echo
|
||||||
echo "Backup completed! 🎉"
|
echo "Backup completed! 🎉"
|
||||||
|
|
||||||
echo "Starting YAMS services..."
|
echo "Starting YAMS services..."
|
||||||
$dc start > /dev/null 2>&1
|
$dc start > /dev/null 2>&1
|
||||||
|
|
||||||
|
echo
|
||||||
send_success_message "Backup completed successfully! 🎉"
|
send_success_message "Backup completed successfully! 🎉"
|
||||||
echo "Backup file: $backup_file"
|
echo "Backup file: $backup_file"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user