Difference between revisions of "Talk:Migrate aNd Manage"

From CDOT Wiki
Jump to: navigation, search
m (Talk:Windows Data Migration Tool moved to Talk:Migrate aNd Manage: project name has changed)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
#!/usr/bin/env python
 
  
 +
<pre>
  
 +
0.3 Plan
 +
- name change to "mNm", Migrate aNd Manage
 +
- add link function to map for user sub folder(s), all or list
 +
- add ntfs-3g mount loop
 +
- check fedora user partition usage
 +
- use default user folder path to look for partition(s) to migrate
  
# a sample python script for Windows Data Migration Tool
+
= If time is allowed...
 +
- auto migrate from all xp/vista partition
  
# just to make sure the concepts works in python...
 
  
 
+
</pre>
 
 
##########  Program Logic Flow  v0.1 20081012 ##########
 
 
 
#
 
 
 
# - Show welcome page and descriptions
 
 
 
# - Search Windows User Folders
 
 
 
# - Gethering folders information
 
 
 
# - Check if Fedora User parition is enough for all documents from  Windows users
 
 
 
# - Prompt if administrator wants every thing automatic -> go to AUTO  else -> go to MANUAL
 
 
 
#
 
 
 
#
 
 
 
# AUTO
 
 
 
#
 
 
 
# - List all possible users and ask if every thing is correct
 
 
 
# - Ask for dummy password for each user
 
 
 
# - Automatic create User
 
 
 
# - Automatic move User documents to each user directory
 
 
 
# - Automatic migrate bookmarks to Konqueror
 
 
 
#
 
 
 
# MANUAL
 
 
 
#
 
 
 
# - List all possible users and ask for individual password
 
 
 
# - Prompt each folder that copy to Fedora partition, and see if administrator wants to move files to a specific folder
 
 
 
# - Prompt each user when move bookmarks to Konqueror
 
 
 
# -
 
 
 
#
 
 
 
 
 
 
 
import os, os.path, shutil
 
 
 
 
 
 
 
print "============================================================"
 
 
 
print "        Windows Data Migration Tool"
 
 
 
print "                Function Test"
 
 
 
print "============================================================"
 
 
 
 
 
 
 
 
 
 
 
PATH="/tmp/test"
 
 
 
print "check if directory ", PATH ,"exist"
 
 
 
print os.path.isdir(PATH)
 
 
 
 
 
 
 
 
 
 
 
PATH2=PATH+"2"
 
 
 
 
 
 
 
print "check if ", PATH, "and ", PATH2, "exist"
 
 
 
print PATH, os.path.isdir(PATH)
 
 
 
print PATH, os.path.isdir(PATH2)
 
 
 
 
 
 
 
print "creat folder", PATH, ",if it's not exist"
 
 
 
if not os.access(PATH, os.F_OK):
 
 
 
    os.mkdir(PATH)
 
 
 
 
 
 
 
# print os.listdir("/tmp")
 
 
 
if not os.access(PATH2, os.F_OK):
 
 
 
        shutil.copytree(PATH,PATH2)
 
 
 
else:
 
 
 
        print PATH2, "alredy exist. dir not copyied"
 
 
 
 
 
 
 
# shutil.rmtree(PATH2)
 

Latest revision as of 18:02, 4 December 2008


0.3 Plan
- name change to "mNm", Migrate aNd Manage
- add link function to map for user sub folder(s), all or list
- add ntfs-3g mount loop
- check fedora user partition usage
- use default user folder path to look for partition(s) to migrate

= If time is allowed...
- auto migrate from all xp/vista partition