Skip to content

Commit

Permalink
Save DB dump after warm/fast reboot (#8913)
Browse files Browse the repository at this point in the history
Back porting the master branch change - #8803

Save the redis DB dump after warm reboot.
  • Loading branch information
vaibhavhd authored Oct 22, 2021
1 parent 52366b0 commit f1d817a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function postStartAction()
sleep 1;
done
if [[ ("$BOOT_TYPE" == "warm" || "$BOOT_TYPE" == "fastfast") && -f $WARM_DIR/dump.rdb ]]; then
rm -f $WARM_DIR/dump.rdb
# retain the dump file from last boot for debugging purposes
mv $WARM_DIR/dump.rdb $WARM_DIR/dump.rdb.old
else
# If there is a config db dump file, load it
if [ -r /etc/sonic/config_db.json ]; then
Expand Down

0 comments on commit f1d817a

Please sign in to comment.