summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-09-02 10:21:50 -0400
committerluxagraf <sng@luxagraf.net>2016-09-02 10:21:50 -0400
commitb4f23fee8108383b96563adb29c4582864d9ca28 (patch)
tree207c6b4ccd22337b9f6803f8040a0d65b7901bc9
parent4b5c9125ed630a1fbea97020a4d639afe0ac9798 (diff)
added notes on how to dump database and rename drives
-rw-r--r--dump database psql mysql.txt13
-rw-r--r--linux rename drive.txt32
2 files changed, 45 insertions, 0 deletions
diff --git a/dump database psql mysql.txt b/dump database psql mysql.txt
new file mode 100644
index 0000000..8c265fd
--- /dev/null
+++ b/dump database psql mysql.txt
@@ -0,0 +1,13 @@
+
+
+For mysql:
+
+mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
+
+To dump multiple at once, use the databases flag:
+
+mysqldump -u root -p[root_password] --databases db1 db2 > combined.sql
+
+Then to restore:
+
+mysql -u root -p[root_password] [database_name] < dumpfilename.sql
diff --git a/linux rename drive.txt b/linux rename drive.txt
new file mode 100644
index 0000000..da86d5e
--- /dev/null
+++ b/linux rename drive.txt
@@ -0,0 +1,32 @@
+title: Rename a drive in Linux
+source: http://askubuntu.com/questions/276911/how-to-rename-partitions
+
+
+From the command line
+
+Replace /dev/sdxN with your partition (e.g. /dev/sdc1).
+
+ for FAT32:
+
+ sudo mlabel -i /dev/sdxN ::"my_label"
+
+ or:
+
+ sudo fatlabel /dev/sdxN my_label
+
+ for NTFS:
+
+ sudo ntfslabel /dev/sdxN my_label
+
+ for exFAT:
+
+ sudo exfatlabel /dev/sdxN my_label
+
+ for ext2/3/4:
+
+ sudo e2label /dev/sdxN my_label
+
+ for BTRFS:
+
+ sudo btrfs filesystem label /dev/sdxN my_label
+