0
The phenomenon and background of the problem

Deploy springboot project into docker container, back up blog database in mysql container docker

Problem related code
        ProcessBuilder processBuilder = new ProcessBuilder("docker","exec","mysql","mysqldump","-h81.71.87.241","-P3306","-uroot","-proot","blog",">","/mnt/docker/backup/aaa.sql");
Running results and error contents
mysqldump: Couldn't find table: ">"
The result I want to achieve

Please advise how to solve this problem.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
raxcl
  • 1

0 Answers0