我正在尝试从Linux盒恢复远程RDS实例中的数据库。以下是我的命令:
sudo mysql –h host.amazonaws.com –u username –p password databasename < backupfile.sql
MySql版本14.14。当我输入上面的命令时,我会看到下面所有的默认值。数据库也不会恢复。
mysql Ver 14.14 Distrib 5.7.32, for Linux (x86_64) using EditLine wrapper
Copyright (c) 2000, 2020, Oracle and/or its affilia
我目前正在使用remastersys备份我的Ubuntu系统,但最后它告诉我以下错误:
The compressed filesystem is larger than genisoimage allows for a single file. You must try to reduce the amount of data you are backing up and try again.
但是,备份系统后,空闲空间留下了2GB。我没有办法解决这个问题。(此外:我的笔记本电脑里还有一个Windows 7系统)
Partition table: Device Boot Star
我正在使用PythonAnywhere托管我的web应用程序。使用Mongodb作为我的数据库。现在,我的任务是定期进行备份,并随时恢复特定版本的mongodb。
在本地(windows机器)上做这件事很容易。安装Mongodb实用程序并执行命令
mongodump --mongodbConnectionString //From location where this executable is stored
mongorestore --mongodbConnectionString
现在,我面临的挑战是如何从PythonAnywhere中做到这一点。在这里,我应该如何使用这些实用程序