I''m using Ubuntu 10.04 But i need to restore the system, stuff isn''t working right after the update so I need to backup my rails project. Would a copy and paste onto a flashdrive work? What about all my migrated database tables? What is the best way to back up a rails project? Can i just copy and paste everything? Would that save it? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 May 2010 22:14, David Zhu <dzwestwindsor45-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m using Ubuntu 10.04 > > But i need to restore the system, stuff isn''t working right after the > update > > so I need to backup my rails project. > > > Would a copy and paste onto a flashdrive work? What about all my > migrated database tables? > > What is the best way to back up a rails project? Can i just copy and > paste everything? Would that save it? ThanksThat will save the sources, but it would be much better to have the sources in a version control system such as git, then you just need to backup the repository. You also need to dump the contents of the database, which depends on the db type. After backing up make sure you can restore it and that it runs (and tests pass) before erasing the originals. Colin> > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
If I did copy and paste my project folder into a flash drive, and then after the restore i paste it back on the harddrive, would it still work though? can i just run a rake db:migrate and then everything will get migrated? or no? On May 10, 5:21 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 10 May 2010 22:14, David Zhu <dzwestwindso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''m using Ubuntu 10.04 > > > But i need to restore the system, stuff isn''t working right after the > > update > > > so I need to backup my rails project. > > > Would a copy and paste onto a flashdrive work? What about all my > > migrated database tables? > > > What is the best way to back up a rails project? Can i just copy and > > paste everything? Would that save it? Thanks > > That will save the sources, but it would be much better to have the > sources in a version control system such as git, then you just need to > backup the repository. > > You also need to dump the contents of the database, which depends on > the db type. > > After backing up make sure you can restore it and that it runs (and > tests pass) before erasing the originals. > > Colin > > > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On May 10, 2:58 pm, David Zhu <dzwestwindso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If I did copy and paste my project folder into a flash drive, and then > after the restore i paste it back on the harddrive, would it still > work though? can i just run a rake db:migrate and then everything will > get migrated? or no?What''s your database? With mysql, use mysqldump. This will give you a file that will allow restoring the database later. See for example, http://www.webcheatsheet.com/SQL/mysql_backup_restore.php for more details. For other database, search the Internet: "Backup Restore <Your Database>" By the way, make sure you know which gems, including versions, your system has currently as well : "gem list --local" Stephan> On May 10, 5:21 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > On 10 May 2010 22:14, David Zhu <dzwestwindso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I''m using Ubuntu 10.04 > > > > But i need to restore the system, stuff isn''t working right after the > > > update > > > > so I need to backup my rails project. > > > > Would a copy and paste onto a flashdrive work? What about all my > > > migrated database tables? > > > > What is the best way to back up a rails project? Can i just copy and > > > paste everything? Would that save it? Thanks > > > That will save the sources, but it would be much better to have the > > sources in a version control system such as git, then you just need to > > backup the repository. > > > You also need to dump the contents of the database, which depends on > > the db type. > > > After backing up make sure you can restore it and that it runs (and > > tests pass) before erasing the originals. > > > Colin > > > > -- > > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. > > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.